f12 yum/rpm commands to list all dependencies on a library

Todd Zullinger tmz at pobox.com
Sun Nov 22 04:16:50 UTC 2009


Skunk Worx wrote:
> On f12 I see a package called oprofile-gui depends on the qt3-3.8b
> rpm.
>
> What command(s) can I run inside a local repo (where all the rpm
> packages are) that will tell me how many f12 "Everything" packages
> are still using qt3?
>
> What command(s) can I run for the locally installed package set that
> will tell me how many packages are still using qt3?

The repoquery command, from yum-utils, is perfect for this task
(though it will just query the repodata rather than look at local
packages -- generally I think this is preferable, but it's not exactly
what you asked for).

To find all the dependencies for qt3, this should do the trick:

$ repoquery --whatrequires --alldeps qt3 | sort

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To be stupid, selfish, and have good health are three requirements for
happiness, though if stupidity is lacking, all is lost.
    -- Gustave Flaubert

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20091121/a0cee081/attachment-0001.sig>


More information about the fedora-list mailing list