Firstly, ensure that
graphviz is installed with
brew install graphviz.
You'll need to somehow get the
graph command in one of two ways:
- Tap the boneyard with
brew tap homebrew/boneyard. This will install an older version of the command, written in Python that parses
brew deps. It may stop working as time goes on.
- Copy the
brew-graphscript from this project to somewhere on your PATH. It hasn't been updated in a while, so YMMV. You will have to write the data to a file with
-o filenameand modify the command below to read from that file until issue #2 is fixed.
Then you can do this with the Python version:
brew graph | dot -Tgif > deps.gif
Or this with the Ruby version:
brew graph -g all -o graph.dot cat graph.dot | dot -Tgif > deps.gif open deps.gif
This will generate something like this:
gif instead of
png for this, as the image is only a few colors and otherwise ends up being huge.