I wondered why brew list
showed so many packages I didn’t install myself.
Then, I discovered those are the dependencies of the packages I installed. And the dependencies of those dependencies. And so on.
Seems kinda obvious now.
# Which packages and casks are installed?
brew list
# Why is <package-name> installed? Which packages are using it?
brew uses <package-name> --installed
# Which dependencies came with <package-name>?
brew deps <package-name> --tree