Skip to content

Instantly share code, notes, and snippets.

@johnmccabe
Created November 16, 2018 10:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save johnmccabe/d5868fb85a875372566d426d87ba00d1 to your computer and use it in GitHub Desktop.
Save johnmccabe/d5868fb85a875372566d426d87ba00d1 to your computer and use it in GitHub Desktop.
Installing/Using old releases with brew

Install Old Releases with Brew

If you need to install an old software release with brew you can do so as follows.

  1. Install the latest version of kubernetes-cli
brew install kubernetes-cli

This will install the latest release (currently 1.12.2) 2. Unlink the installed release so you can install an old version:

# brew unlink kubernetes-cli
  1. Install an old version by pointing directly at an old version of the softwares formula, for example this URL points to 1.11.3:
# brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/41764e07727d9a86b0f8a077117dc7876ca294c4/Formula/kubernetes-cli.rb
  1. You can check all the installed releases as follows:
# brew list --versions kubernetes-cli
kubernetes-cli 1.12.0 1.11.3 1.12.2
  1. You can switch between versions when needed as follows:
# brew switch kubernetes-cli 1.12.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment