Skip to content

Instantly share code, notes, and snippets.

@rochakgupta
Last active June 14, 2024 08:29
Show Gist options
  • Save rochakgupta/d6046580ec4e7878f56b085f1a39f7da to your computer and use it in GitHub Desktop.
Save rochakgupta/d6046580ec4e7878f56b085f1a39f7da to your computer and use it in GitHub Desktop.
Install specific version of homebrew formula

Install

Tap homebrew/core

brew tap homebrew/core --force

Add local tap

brew tap-new rochakgupta/taps

Extract specific version of formula from homebrew/core to local tap

brew extract <formula> rochakgupta/taps --version <version>

Install specific version of formula from local tap

brew install rochakgupta/taps/<formula>@<version>

Pin installed version of formula to prevent auto upgrades

brew pin <formula>@<version>

Extras

List taps

brew tap

List pinned formulae

brew list --pinned

Unpin formula to enable auto upgrades

brew unpin <formula>@<version>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment