On Fri, 3 Sep 1999, Tom Berger wrote:
> Hi!
>
> What I want to do is this:
>
> I want to search the RPM directory of the Mandrake CD for a certain
> filename and then want to have displayed which uninstalled RPM-package
> this file belongs to. And I want it in one command ;-)
>
> What I've tried so far:
>
> rpm -qpf [name]
> rpm: one type of query/verify may be performed at a time
>
> rpm -qpli * | less -p[name]
> prints out the filename but not the package it belongs to (same with grep)
>
> rpm -qpli * | less | grep -l xtrojka.score
> (standard input)
> Broken pipe
>
>
> Ideas anyone?
for i in *.rpm ; do rpm -qpli $i | grep xtrojka.score && echo $i ; done
probably useing --queryformat would be better..
> Thanks
>
> tom
>
>
--
MandrakeSoft http://www.mandrakesoft.com/
--Axalon