Homebrew: Install old versions (of Elasticsearch)

Recently i upgraded all my homebrew software via brew update && brew upgrade.

This upgrade installed a newer version of Elasticsearch. It upgraded elasticsearch from 1.7.3 to 2.1.0. This is not a problem per se, but i had a few issues with Elasticsearch 2.1.0. Because of my limited time schedule i decided to reinstall the old version of Elasticsearch again.

How do you install old versions with brew?

After a quick search i found this repository. From the Readme:

These formulae provide multiple versions of existing packages, or newer versions of packages that are too incompatible to go in Homebrew/homebrew yet (Such as GnuPG21).

Bingo! You can add the homebrew-versions tap with the following command:

brew tap homebrew/versions

After adding the homebrew/versions tap you can use the standard homebrew search to search for older versions:

$ brew search elasticsearch


Just choose your prefered version and type brew install homebrew/versions/elasticsearch17. Homebrew will install Elasticsearch 1.7.3 without any issues. If you have multiple versions installed, you can use brew switch to switch between those versions.

If you only want to add one specific version, and not the whole homebrew-versions tap, search for the formular you need and install it via

brew install https://raw.githubusercontent.com/Homebrew/homebrew-versions/master/elasticsearch17.rb

Feedback? Du erreichst mich via Mail oder Mastodon.

Wenn du meinen Blog abonnieren möchtest, findest du hier meinen RSS Feed.