[Techtalk] which rpm package does a file belong to
Zohar, Itai
Itai.Zohar at comverse.com
Thu May 16 09:27:04 EST 2002
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?
thanks,
Itai.
In case anybody is interested in the slow method:
for pack in `rpm -qa`; do
if rpm -ql $pack | grep <file>; then
echo $pack
fi
done
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://linuxchix.org/pipermail/techtalk/attachments/20020516/a4743643/attachment.xhtml
More information about the Techtalk
mailing list