Install an old version of a Brew formula

Posted on February 26, 2025 by Riccardo
HOMEBREW_NO_INSTALL_FROM_API=1 brew tap --force homebrew/core
cd $(brew --repository homebrew/core)
git log --oneline --follow Formula/g/gdb.rb
git checkout <sha>
brew install ./Formula/g/gdb.rb

Source: https://gist.github.com/mike-myers-tob/9a6013124bad7ff074d3297db2c98247?permalink_comment_id=5407666#gistcomment-5407666

PinkLetter

It's one of the selected few I follow every week – Mateusz

Tired of RELEARNING webdev stuff?

  • A 100+ page book with the best links I curated over the years
  • An email once a week full of timeless software wisdom
  • Your recommended weekly dose of pink
  • Try before you buy? Check the archives.