

First, it unlinks the old version, and then it links the new one. Under the hood, this actually performs two separate brew commands. All you have to do is run brew switch postgres.

Now that we have the correct version installed and we have stopped any previous versions from running, we can switch to the correct version. You can run brew services stop postgres to do so. If you are switching a keg that runs as a Homebrew service, you should stop it before switching to a new version. From there, you can run brew install homebrew/versions/keg-version.įor example, to install Postgres 9.5.5, you would run brew install homebrew/versions/postgresql95. This will add each version of each keg to the output when you run brew search postgres.

If you haven’t tapped brew versions, you can do so by running brew tap homebrew/versions. If you don’t see the version you need, it is possible to install it. If you run brew info postgres, the output will include a list of library versions. Here’s how you can use it to switch between Postgres versions. However, until I found out about the switch command, I didn’t have a straightforward way to switch between versions of a particular keg. Remember this database name, as it will be used to configure Jira's connection to this database in subsequent steps.Homebrew is an extraordinarily helpful tool to install and maintain system libraries. Remember this database user name, as it will be used to configure Jira's connection to this database in subsequent steps.Ĭreate a database for Jira to store issues in (e.g.
