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.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux