Vaguely in the tone of previously mentioned efforts, but without
anything remotely close to the diligence: this script will produce a
file called dep.graph in the current directory, which dot/dotty from the
graphviz package will render into a directed graph showing you package
dependencies on your redhat system. I'm sure someone can have fun with this.
Cheers,
Waider.
------------------------->8-----------------------------------------
#!/bin/sh
# Start of graph file
echo "digraph dep {" > dep.graph
for i in `rpm -qa --queryformat "%{NAME}\n"`
do
# Get the package name + version
name=`rpm -q $i`
echo $name >&2
if rpm -q --whatrequires $i > /dev/null 2>&1
then
for dep in `rpm -q --whatrequires $i --queryformat "%{NAME}\n"`
do
echo "\"$dep\" -> \"$i\";" >> dep.graph
done
fi
done
# End of graph file
echo "}" >> dep.graph
------------------------->8-----------------------------------------
--
waider at waider.ie / Yes, it /is/ very personal of me
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!