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

Paul Almquist paul at
Mon Jan 31 17:09:54 UTC 2005

On Monday 31 January 2005 10:03, James Mckenzie wrote:
> -----Original Message-----
> From: David Hoffman <dhoffman2004 at>
> Sent: Jan 31, 2005 8:58 AM
> To: For users of Fedora Core releases <fedora-list at>
> Subject: Re: How can i find out, what files a RPM is provding?
> On Mon, 31 Jan 2005 12:33:45 +0000, Paul Howarth <paul at> wrote:
> > Roger Grosswiler wrote:
> > > i want to check, whether i have installed on my system. This
> > > must have been happened via yum - so rpm.
> > >
> > > yum provides is extremly slow on this machine, so i would like to check
> > > this with rpm. So how can i find out, whick rpm-package is providing
> > > Tar .pm?
> >
> > Assuming is properly installed in your perl module tree:
> >
> > $ rpm -qf `find /usr/lib/perl5 -name -print`
> What about:
> rpm -q --whatprovides
> -----James' Reply-----
> Don't you have to install an additional .rpm to get this functionality?  I
> had to, just in case the .rpm was not installed on my system.  Details are
> in the archive on installation of the appropriate files.

if you want rpm to query on an rpm package file instead of querying the rpm 
data base, whether or not the rpm is installed, add the -p option to your 
query, e.g.:

rpm -qpi  package-file-name  (descriptive info)
rpm -qpl  package-file-name (full path names of files in package)
rpm -qplv  package-file-name (ls -l like listing of files in package)


Paul Almquist
paul at

More information about the users mailing list