Skip to content

Instantly share code, notes, and snippets.

@christianmlong
Created July 16, 2015 19:26
Show Gist options
  • Save christianmlong/a370973e3cf8d7cba99e to your computer and use it in GitHub Desktop.
Save christianmlong/a370973e3cf8d7cba99e to your computer and use it in GitHub Desktop.

2015

July

2015-07-16 12:20, Homebrew and Postgres

I spent some time figuring out how to install several different versions of PostGresql on my mac. With Homebrew nowadays, you do this

brew tap homebrew/versions
brew install postgresql91
brew install postgresql93

To alternate between two versions installed from homebrew\versions, use this:

brew unlink postgresql91 && brew link postgresql93
brew unlink postgresql93 && brew link postgresql91

Reference - this Stack Overflow question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment