Skip to content

Instantly share code, notes, and snippets.

@zmts
Last active June 9, 2022 19:28
Show Gist options
  • Save zmts/b5f3e98984f9cd3ed9852b1f34874c22 to your computer and use it in GitHub Desktop.
Save zmts/b5f3e98984f9cd3ed9852b1f34874c22 to your computer and use it in GitHub Desktop.
Homebrew Install Specific Version of Formula
@ravemir
Copy link

ravemir commented Oct 29, 2021

Does this still work? I was able to do it for a cask, but not regular formulae.

The only thing that worked for me was adding my own tap and extract a specific version for it, as stated on this article.

For posterity, for kubernetes version 1.11.2, this means:

brew tap-new $USER/local-kubernetes
brew extract --version=1.11.2 kubernetes $USER/local-kubernetes
brew install $USER/local-kubernetes/kubernetes@1.11.2

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