Easy Way to have Homebrew list all package dependencies

Oliver Dechant picture Oliver Dechant · Dec 8, 2016 · Viewed 23.9k times · Source

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.

Answer

Eric Dobbs picture Eric Dobbs · Aug 31, 2018
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.