HOMEBREW_NO_INSTALL_FROM_API=1 brew install [email protected]
Created
September 22, 2023 20:27
-
-
Save diegopacheco/1fe869505b7df9fa17c93b9f3cf62e4c to your computer and use it in GitHub Desktop.
How to install homebrew disable formula?
@noxymon-mekari Thanks. For me I found that the formula was actually in
{HOMEBREW_DIR}/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/
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:
- Run
HOMEBREW_NO_INSTALL_FROM_API=1 brew install [email protected]
. This will fail with a "disabled" message. - cd to
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/p
- Edit file
[email protected]
, look for this line and comment it with a leading #:disable! date: "2024-10-14", because: :deprecated_upstream
- 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
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