Possible to blacklist packages? #1908
Replies: 3 comments 5 replies
-
You could just install it and |
Beta Was this translation helpful? Give feedback.
-
I'm also looking forward to this feature, lots of Java softwares have been declared depend on |
Beta Was this translation helpful? Give feedback.
-
This is also common for Rust especially when certain code requires nightly and I switch release channels use rustup. Brew installs the stable, rustup installs nightly and when a crate requires nightly, Brew's Rust interferes to compile. If you forget to uninstall/unlink Brew's Rust, you get weird errors, especially for beginners. There must be a way to tell "I already have this package, please don't install and go on assuming you have" to Brew. |
Beta Was this translation helpful? Give feedback.
-
I was wondering if it's possible with brew to "blacklist" packages? The main reason I ask is that I do code development on my Macbook and I like to control my compilers by building them myself and maintaining Lua modules to enable them.
Thus, I tend to be very careful and never let brew install
gcc
since I want to maintain that myself and make sure it's not in my "default" path (which has the brew bin). I have to live withclang
being in my default PATH, butgcc
only appears when I ask it to.But the fun part is when I do a
brew install foo
and find it wantsgcc
and boom, I now havegcc-11
or whatever in my path. I try to look atbrew info foo
first, but sometimes I see a cool new package and get impatient. 😄So I wondered, is there a way to tell
brew
"never installgcc
or any package that depends on it"? I don't mind losing out on some packages if it means I can keep my control.Beta Was this translation helpful? Give feedback.
All reactions