Re: rpm -q --whatrequires foo lies

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Todd Zullinger wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jay Cliburn wrote:
Why doesn't "rpm -q --whatrequires dbus-sharp" find the same
dependency that yum does?  This is an up-to-date FC5.i386 system.

The dependency that yum is catching isn't on dbus-sharp, but on
mono(dbus-sharp).

    $ rpm -q --whatrequires 'mono(dbus-sharp)'
    tomboy-0.3.5-3
    f-spot-0.1.10-1

You could do something like this to try and catch that:

    $ rpm -q --whatrequires $(rpm -q --provides dbus-sharp | cut -d= -f1)

That might not get all of them. There could also be file-based dependencies (e.g. a package requiring one of the files or directories in another package), so you'd need to check whatrequires for each and every file and directory in the dbus-sharp package too.

There may well be an easier way to do this using rpm and bash, but
that's one way that springs to mind.  Of course, using yum is even
easier than that. :)

I agree. "yum remove" is by far the easiest way to check; just don't get in the habit of using "yum -y"...

Paul.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux