Re: RPM

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

 



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@xxxxxxxxxx> 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@xxxxxxxxxx
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.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux