Last active
December 19, 2015 03:38
-
-
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
This file contains 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
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