Stumbled on this utility to manage looking at dependencies. Really helps to visualize homebrew structure and can be done at top level:
Or one formula and below:
Great way of checking the connections before cleaning things up. Particularly helpful when checking across php versions, which I still keep relevant and available. Also helped resolve a deprecation issue I had with “ilmbase” which is now subsumed in openexr. All still keeps me on my toes.
% brew graph –installed | dot -Tpng -oxxx.png
-or-
% brew graph php | dot -Tpng -oxxx.png