more yum tools that we haven’t really done much with :)

September 5, 2008

Due to some packages that had issues building it was useful today to put together a script to check all the packages that depend on something provided from any given package. I wrote a version of this to start with but it only went 2 levels deep. Then I remembered that James had written something similar but for checking what things any given package depend on.

His is right here: http://people.redhat.com/jantill/yum/commands/pkg-deps-tree-view.py

His went down the dependency tree from a package. I took it and swapped it around to work on provides instead of deps. Mine is here:

http://skvidal.fedorapeople.org/misc/pkg-provs-tree-view.py

In either case you run it with a package name as an argument. If you use James’ it will list in a tree view all the packages that your package depends on, recursively. If you use mine it will list all the packages that depend on something that your package provides.

I think I may work on trying to make them be one script you pass an option to for one or the other. But as it is, it’s pretty useful.

Give it a try.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: