RPM

Dave Burns tburns at hawaii.edu
Tue Oct 30 18:35:06 UTC 2007


rpm -qf would also tell you that for a file:

$ rpm -q --whatprovides /etc/rc.d/init.d/sshd
openssh-server-4.5p1-6.fc7
$ rpm -qf /etc/rc.d/init.d/sshd
openssh-server-4.5p1-6.fc7

--whatprovides is actually more general, it will also tell you what
provides a "capability":

$ rpm -q --whatprovides httpd
httpd-2.2.6-1.fc7

Apparently a rpm can specify a dependency on a capability when any one
of several packages can provide the needed functionality. I am not
able to find the place in the man page where "capability" is defined
or described, but it must be in there somewhere, right?
@)
Dave

On 10/30/07, Karl Larsen <k5di at zianet.com> wrote:
>     I printed out Maximum RPM in 1997 and I refer to it often. I was
> told today to use:
>
>     # rpm -q --whatprovides (complete direction to a file) and it did
> provide the name of the file that provides /etc/rc.d/init.d/nvideo.
>
>     Then just now I got to page 51 and there it listed this capability.
> I have had this capability for 8 years but didn't know it...
> :-)
>
>
> --
>
>         Karl F. Larsen, AKA K5DI
>         Linux User
>         #450462   http://counter.li.org.
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>




More information about the fedora-list mailing list