[Techtalk] which rpm package does a file belong to

Dushyanth Harinath dushy at symonds.net
Thu May 16 00:13:32 EST 2002


Hi Zohar, Itai , 

 * On 16'th May 2002 09:27:04 AM you wrote :
> Is there a quick & easy way to find out which rpm package a file belongs to?
> I always resort to writing a script that goes through all the installed
> packages, which is very slow.
> I know the information is in /var/lib/rpm, but the files are in db format.
> is there a quick way to retrieve it?

#rpm -qf <filename> does exactly what you want.

cheers
dushyanth
-- 
I hear if you play the NT 4.0 CD backwards, you get a Satanic message.
That's nothing. If you play it forward, it installs NT 4.0.

Dushyanth Harinath
Archean Infotech Ltd
http://www.archeanit.com
http://symonds.net/~dushy



More information about the Techtalk mailing list