Re: How can i find out, what files a RPM is provding?

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

 



On Tue, 01 Feb 2005 01:34:53 -0600, Gain Paolo Mureddu
<gmureddu@xxxxxxxxxxxxxx> 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.
>


What?

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
particular package.

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.


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

  Powered by Linux