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

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

 



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 

Attachment: signature.asc
Description: This is a digitally signed message part


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

  Powered by Linux