Last active
September 25, 2021 16:07
-
-
Save dacci/3790f7182ab4b345e66f90b97a6f3288 to your computer and use it in GitHub Desktop.
homebrew formula dependency graph
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo digraph homebrew '{' | |
while read formula; do | |
while read dependent; do | |
echo " \"$dependent\" -> \"$formula\"" | |
done < <(brew uses $formula --installed) | |
done < <(brew list --formulae) | |
echo '}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage
./brew-deps.sh | dot -Tsvg -obrew-deps.svg