Skip to content

Instantly share code, notes, and snippets.

@rgl
Last active June 3, 2019 20:10
Show Gist options
  • Select an option

  • Save rgl/6ebcc3e54949353513c74ca9840cab33 to your computer and use it in GitHub Desktop.

Select an option

Save rgl/6ebcc3e54949353513c74ca9840cab33 to your computer and use it in GitHub Desktop.
debian package tree graph
# XXX failed attempt at getting a single graph with all the package dependencies...
mkdir tmp
cd tmp
for pkg in `grep-status --not --field=Package --eq '' --show-field=Package -n`; do
debtree --show-installed "$pkg" >"$pkg.dot"
done
cat *.dot | grep -v digraph | grep -v '}'| (echo 'strict digraph "root" {';cat;echo '}') | dot | neato -n2 -Tpng -o example.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment