[Techtalk] which rpm package does a file belong to
Malcolm Tredinnick
malcolm at commsecure.com.au
Thu May 16 16:35:21 EST 2002
On Thu, May 16, 2002 at 09:27:04AM +0300, Zohar, Itai wrote:
> Hi.
>
> 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?
Just run 'rpm -qf <filename>' (where <filename> is the full path to the
file in question).
Cheers,
Malcolm
--
More information about the Techtalk
mailing list