Sometimes you need to install a specific, older version of an existing Homebrew Formula. In this guide I am going to demonstrate how to install an older version of kubectl
, but it can be generalized for an Formula.
The Kubernetes CLI is available as a Homebrew Formulae: https://formulae.brew.sh/formula/kubernetes-cli#default
At the time of writing, my only options to install kubectl
via Homebrew are:
brew install kubectl
- Would install the default version of
v1.29
- Would install the default version of
brew install kubectl@1.29
orbrew install kubectl@1.28