How can i find out, what files a RPM is provding?
dhoffman2004 at gmail.com
Tue Feb 1 20:54:27 UTC 2005
On Tue, 01 Feb 2005 01:34:53 -0600, Gain Paolo Mureddu
<gmureddu at prodigy.net.mx> wrote:
> Well, I'd
> say taht the answer to the questoins as you put them is:
> rpm -qa | grep tar or rpm -qa tar (sometimes it will not work that way) to
> find the package
> rpm -ql tar to see the list of what it provides, I just find it easier to
> just type -l than --whatprovides.
How about reading "man rpm"?
First, "rpm -qa | grep tar" is not going to give him his results. The
file he is looking for is called "Tar.pm". When you run "rpm -qa" it
does not go into the detail about which files are installed, only
gives you information about the packages. And "grep tar" won't find
"Tar.pm" anyhow because grep is case sensitive... "unless you typed
"grep -i tar".
Second, "rpm -ql" is used to list the files that are installed by a
He doesn't know which package installed the file, so your solution
means he would have to do rpm -ql to every single package installed on
his system just to search for the file.
"rpm -q --whatprovides /path/to/file" will tell you which package was
responsible for installing a particular file.
More information about the users