So I needed to upgrade youtube-dl
, and ran brew upgrade youtube-dl
. While it was running, homebrew decided it needed to upgrade a lot more stuff, including all of my installed PHP versions... And now, none of them works like they should anymore (error messages in cli, modules not loaded, etc.).
I'm going to go on and probably reformat my machine to have a clean slate, but I wonder why running brew upgrade
while explicitely giving the package to upgrade would update others. I understand dependencies, but I highly doubt that youtube-dl
is dependent on PHP 7.4 and PHP 8.0, and others.
Is there a flag I missed? Anything else?
youtube-dl
is dependent on is likely dependent on something else which is dependent on something else. That's the idea of a dependency tree. I'm sure that homebrew has something that will show you the dependency tree, it can't be so broken that it does not. It also has--dry-run
which should always be used before actually letting it do anything.