[101329] in RedHat Linux List
Re: querying RPM's
daemon@ATHENA.MIT.EDU (Leo)
Wed Nov 25 15:22:08 1998
Date: Wed, 25 Nov 1998 21:18:52 +0100
From: Leo <leonardo@dinamicmultimedia.es>
To: redhat-list@redhat.com
X-MDaemon-Deliver-To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
If the line you wrote works, you could just wrap it whith a bash for
loop (man bash) and maybe put it in a script:
for a in *.rpm; do
echo "RPM " $a
rpm -qpl $a | grep [some_file]
done
Michael Jinks wrote:
>
> Given a long list of RPM's (like on the RedHat CD), is it possible to do
> some sort of package query that will tell me which package provides some
> particular file? The closest I have gotten so far is
>
> $ rpm -qpl * |grep [some_file]
>
> . . . which will tell me if it finds the file I want, but not which
> package it came from.
>
> I could |less and search, and that's what I'm going to do for now, but
> it seems like there should be a better way.
>
> --
> Michael Jinks
> mailto:michael@twopoint.com http://www.twopoint.com
> Systems Administrator, Two Point Conversions, Inc.
>
> --
> PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
> http://www.redhat.com http://archive.redhat.com
> To unsubscribe: mail redhat-list-request@redhat.com with
> "unsubscribe" as the Subject.
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.