Skip to content

Instantly share code, notes, and snippets.

@jbialy
Created March 7, 2019 21:38
Show Gist options
  • Save jbialy/de5444debca73165876f8d6e91cc3b43 to your computer and use it in GitHub Desktop.
Save jbialy/de5444debca73165876f8d6e91cc3b43 to your computer and use it in GitHub Desktop.
Installing an older version of a brew formula

This example uses kubernetes-helm as the forumla being installed.

Checkout the homebrew-core repo:

git clone git@github.com:Homebrew/homebrew-core.git && cd homebrew-core

Find the commit hash related to the formula version that you wish to install:

git log master -- Formula/kubernetes-helm.rb

Checkout a branch at that commit:

gco -b kubernetes-helm-2.12.2 e046a932a36345bf90398a19272e57c7fc640494

Install using this particular formula file:

brew install Formula/kubernetes-helm.rb

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