Skip to content

Instantly share code, notes, and snippets.

View lekodeveloperweb's full-sized avatar

Alex Leko lekodeveloperweb

View GitHub Profile
@mike-weiner
mike-weiner / brew-install-specific-formula.md
Last active June 24, 2025 09:39
An explanation of how to install a specific version of a Homebrew formula.

Install Previous Homebrew Formula

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: