Skip to content

Instantly share code, notes, and snippets.

@meeuw
Last active December 19, 2015 03:38
Show Gist options
  • Save meeuw/5891050 to your computer and use it in GitHub Desktop.
Save meeuw/5891050 to your computer and use it in GitHub Desktop.
List and resolve local rpm database to an almost graphviz dot file format
rpm -qa --queryformat '%{NAME} [--whatprovides %{REQUIRES} ]\n'|while read NAME REQUIRES ; do rpm -q --queryformat '%{NAME}\n' $REQUIRES|grep -v 'no package provides'|sed "s/\(.*\)/\"$NAME\" -> \"\1\"/" ; done|sort -u > /tmp/deps.dot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment