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](“http://www.postgresql.org" “PostgreSQL”) 8.4 install using the great[Homebrew](“http://github.com/mxcl/homebrew" “Homebrew”) by [Adam Vandenberg](“http://twitter.com/flangy" “Homebrew”).

Run the author’s [installation script](“http://gist.github.com/323731" “install”), and that’s it.

Try:

$ 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](“http://github.com/mxcl/homebrew" “Homebrew”). True UNIX tool!

EDIT

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](“http://www.vim.org/scripts/script.php?script_id=2030" “Vimblog”))

© 2018 | Follow on Twitter | pedro mg & Hugo