Skip to content

Instantly share code, notes, and snippets.

@nickcharlton
Created August 31, 2022 13:15
Show Gist options
  • Save nickcharlton/0265f58bcce83a0c32fa724365fa0055 to your computer and use it in GitHub Desktop.
Save nickcharlton/0265f58bcce83a0c32fa724365fa0055 to your computer and use it in GitHub Desktop.
Gist from Drafts

Homebrew: Install specific version

# jump into the Homebrew repo
cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
# find the sha to check out
git log master -- Formula/packer.rb
# uninstall the current version
HOMEBREW_NO_AUTO_UPDATE=1 brew uninstall packer
# check out the version, not allowing update
git checkout d7caec0d6
HOMEBREW_NO_AUTO_UPDATE=1 brew install packer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment