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

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

 



On May 19, 2004, Matt Hansen <helios82@xxxxxxxxxxxxxxxx> wrote:

> 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?

A capability can be a file, but it can also be an arbitrary name that
a package provides.  For example, on FC2 (with X.org X11, no XFree86):

[aoliva@free aoliva]$ rpm -q --whatprovides XFree86-libs
xorg-x11-libs-6.7.0-2
[aoliva@free aoliva]$ rpm -qf XFree86-libs
error: file XFree86-libs: No such file or directory

-- 
Alexandre Oliva             http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}



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

  Powered by Linux