RPM

Karl Larsen k5di at zianet.com
Tue Oct 30 18:49:22 UTC 2007


Dave Burns wrote:
> 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
>>
>>     
>
>   
    Yes I saw that rpm -qf was close to what I used. I have no idea what 
capability the longer whatprovides provides either. If your need is to 
delete something then your about half done. when you try rpm -e filename 
you get a batch of dependent rpm names to deal with. And that takes 
experience.

Karl
 

-- 

	Karl F. Larsen, AKA K5DI
	Linux User
	#450462   http://counter.li.org.




More information about the fedora-list mailing list