- If you don't have homebrew visit the homebrew site http://brew.sh to install it.
brew doctor
brew update
- Once everything is ok with the doctor and homebrew is update. You can then
brew install postgres
- Update your system (you may need
sudo
):
apt-get update
apt-get upgrade
- To install PostgreSQL ...
apt-get install postgresql postgresql-contrib