3 ms·
Indeed, and graphviz's dot is really useful, too. It makes it really easy to make all sorts of graphs. For example, if I wanted to make a dependency graph of al
by jolmg 7y ago
Indeed, and graphviz's dot is really useful, too. It makes it really easy to make all sorts of graphs. For example, if I wanted to make a dependency graph of all the packages I have installed in Archlinux, I can use it like this:
pacman -Qq | xargs -r pacman -Qi | awk '
BEGIN { print "digraph deps {" }
/^Name/ { n = $3 }
/^Depends On/ {
for (i = 4; i <= NF; i++)
print " \"" n "\" -> \"" $i "\";"
}
END { print "}" }
' | dot -Tsvg > package-deps.svg