Skip to content

Instantly share code, notes, and snippets.

@dasgoll
Forked from johnmccabe/BREW_OLD_FILES.md
Created February 25, 2019 07:13
Show Gist options
  • Save dasgoll/b25893521cccbef764ffce07bdfa9dfe to your computer and use it in GitHub Desktop.
Save dasgoll/b25893521cccbef764ffce07bdfa9dfe 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