Skip to content

Instantly share code, notes, and snippets.

@waj
Created November 19, 2012 15:02
Show Gist options
  • Save waj/4111135 to your computer and use it in GitHub Desktop.
Save waj/4111135 to your computer and use it in GitHub Desktop.
Draw dependencies of installed homebrew packages
#!/bin/bash
function dump() {
echo "digraph homebrew {"
for pkg in `brew list`; do
for dep in `brew deps --1 $pkg`; do
echo "\"$pkg\" -> \"$dep\";"
done
done
echo "}"
}
dump | dot -o brewdeps.png -Tpng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment