If you need to install an old software release with brew
you can do so as follows.
- 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
- 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
- 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
- You can switch between versions when needed as follows:
# brew switch kubernetes-cli 1.12.2