Two RPMs need to be installed before anything else
# yum install rpmorphan graphviz
Now, assume you need all the deps for rebuilding "rpm" (The actual RPM rpm)
First, generate a textual dep graph using:
# rpmdep -dot rpm.dot rpm
The "dot" is a file-format which will be used by the "dot" program to plot a graph. To plot the graph
# dot -Tsvg rpm.dot -o rpm.svg
The command takes rpm.dot and plots the graph in an svg format.
Simple!!
A sample image I generated is here:
4 comments:
Nice!
Is this truncated at a certain depth? Why are dependencies of grep etc. on glibc not shown ?
It is more like a dependency tree rather than a graph. glibc already appeared as a dep of zlib. So, it wasn't considered for any of the stuff later.
basically, it does what RPM would do while resolving dependencies.
Ah got it, left-child->left-1-child->...->right-child->parent traversal
Post a Comment