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 Monday 31 January 2005 10:03, James Mckenzie wrote:
> -----Original Message-----
> From: David Hoffman <dhoffman2004@xxxxxxxxx>
> Sent: Jan 31, 2005 8:58 AM
> To: For users of Fedora Core releases <fedora-list@xxxxxxxxxx>
> 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@xxxxxxxxxxxx> wrote:
> > Roger Grosswiler wrote:
> > > i want to check, whether i have Tar.pm 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 Tar.pm is properly installed in your perl module tree:
> >
> > $ rpm -qf `find /usr/lib/perl5 -name Tar.pm -print`
>
> What about:
> rpm -q --whatprovides Tar.pm
>
> -----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)
or
rpm -qpl  package-file-name (full path names of files in package)
or
rpm -qplv  package-file-name (ls -l like listing of files in package)

paul

-- 
Paul Almquist
paul@xxxxxxxxxxxxx


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

  Powered by Linux