diff between rpm's '--whatprovides' and '-f'

Matt Hansen helios82 at optushome.com.au
Wed May 19 12:14:44 UTC 2004


Hello

What are the functional differences between these two (see subject)
options of RPM? 
I.e.
$ rpm -qf /bin/rpm
rpm-4.2.1-0.30
$ rpm -q --whatprovides /bin/rpm
rpm-4.2.1-0.30

So, how can one if at all be used differently to the other? The man page
states that the "-f" option is used to 'Query package owning FILE' while
the "--whatprovides" is used to 'Query all packages that provide the
CAPABILITY capability'. So these words might suggest they can do
different things, but my example above doesn't think so.. What exactly
is a "capability" defined as?

Regards,
-Matt
-- 
"Would you buy a car with the hood welded shut?"
 - Bob Young on the benefits of the open source development model.
mhelios - www.fedoraforum.org 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040519/83bf68b2/attachment-0001.sig>


More information about the fedora-list mailing list