Skip to content

Instantly share code, notes, and snippets.

@diegopacheco
Created September 22, 2023 20:27
Show Gist options
  • Save diegopacheco/1fe869505b7df9fa17c93b9f3cf62e4c to your computer and use it in GitHub Desktop.
Save diegopacheco/1fe869505b7df9fa17c93b9f3cf62e4c to your computer and use it in GitHub Desktop.
How to install homebrew disable formula?
@noxymon-mekari
Copy link

noxymon-mekari commented Nov 21, 2024

go to {HOMEBREW_DIR}/Homebrew/Library/Taps/homebrew/homebrew-core/homebrew/homebrew-core/Formula
find your formula name inside and comment a line with disable!

now you can brew install as usual

@cgarrovillo
Copy link

@noxymon-mekari Thanks. For me I found that the formula was actually in

{HOMEBREW_DIR}/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/

@chrisinmtown
Copy link

chrisinmtown commented Jan 5, 2025

Thanks for this gist. For noobs like me, here's a list of the required steps when doing this the very first time, I needed 3.8:

  1. Run HOMEBREW_NO_INSTALL_FROM_API=1 brew install [email protected]. This will fail with a "disabled" message.
  2. cd to /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/p
  3. Edit file [email protected], look for this line and comment it with a leading #: disable! date: "2024-10-14", because: :deprecated_upstream
  4. Again run HOMEBREW_NO_INSTALL_FROM_API=1 brew install [email protected]

Brew should install 3.8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment