install PostgreSQL in Mac OSX via Homebrew

March 10, 2010 by pedro mota

Apple OSX Snow Leopard

System Version: Mac OS X 10.6.2 Kernel Version: Darwin 10.2.0

Install notes for [PosgreSQL](“" “PostgreSQL”) 8.4 install using the great[Homebrew](“" “Homebrew”) by [Adam Vandenberg](“" “Homebrew”).

Run the author’s [installation script](“" “install”), and that’s it.


$ brew help
$ brew search postgresql
$ brew install postgresql

Summary/usr/local/Cellar/postgresql/8.4.2: 2297 files, 31M, built in 3.3 minutes

$ brew info postgresql

postgresql 8.4.2

My advice ? Use [Homebrew](“" “Homebrew”). True UNIX tool!


sudo is no longer needed to install formulas system wide; The postgresql formula will be updated with recent postgres versions, so to check versions do:

$ brew versions postgresql

(blogged from [Vim](“" “Vimblog”))

© 2018 | Follow on Twitter | pedro mg & Hugo