rpm -q --whatrequires foo lies

Paul Howarth paul at city-fan.org
Fri Aug 4 12:32:30 UTC 2006


Jay Cliburn wrote:
> 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
>>
> 
> Naming a package "foo(bar)" seems pretty odd to me.  This is the first 
> time I've run across it.

The package isn't *named* that, it *provides* that. A package can 
*provide* much more than just its name, and rpm uses those provides for 
dependencies just like it does with package names.

> Well, at this point it's little more than an exercise in curiosity, but 
> here's more dbus-sharp fun...
> 
> [root at petrel ~]# rpm -q --whatrequires dbus-sharp
> no package requires dbus-sharp
> [root at petrel ~]# rpm -q 'mono(dbus-sharp)'
> package mono(dbus-sharp) is not installed

Try instead:
$ rpm -q --whatprovides 'mono(dbus-sharp)'

> [root at petrel ~]# rpm -q --whatrequires 'mono(dbus-sharp)'
> tomboy-0.3.5-3
> [root at petrel ~]# rpm -q tomboy
> tomboy-0.3.5-3

Paul.




More information about the fedora-list mailing list