Is there anyway to have the command brew
show all the installed or optional dependencies for any given package? It would also be helpful to see which of the install packages are themselves the dependencies of others packages.
brew deps --tree --installed
Thanks to rob-kovacs for suggesting the --tree
addition
See this super helpful article for details: https://blog.jpalardy.com/posts/untangling-your-homebrew-dependencies/ Especially if you're interested in creating a graph of the dependency tree.