If you have CD #1, this will search those rpms, and tell you which rpm the
lib came from.

#!/bin/sh
# rpmgrind: (greps/finds things in rpms)
# usage: cd dir_w_rpms; rpmgrind word


word=$1

for rpm in *.rpm;  do
   rpm -qlp ${rpm} | grep -qs ${word}
   if [ "$?" != 1 ]; then
        echo ${rpm}
   fi
done


hth
charles

On Mon, 13 Dec 1999, Michael J. McGillick wrote:

> Marek:
> 
> I do have rpmfind.  I'm running the Red Hat 6.1 distribution, and I
> believe it's one of the standard RPMS in the package.  What I want to know
> is, if I attempt to rebuild an RPM, and it says that I'm missing a
> library, how do I know which RPM contains that library?
> 
> - Mike
> 
> On Mon, 13 Dec 1999, Marek Antozi wrote:
> 
> > On Mon, 13 Dec 1999, Michael J. McGillick wrote:
> > 
> > > Morning:
> > > 
> > > Is there a command in RPM that tells me what package I need to install in
> > > order to get a certain library if I know the name of the library?  Also,
> > > is there a way to check to see if my system has all of the available
> > > libraries from the CD installed?  I'm recompiling RPMS, and getting some
> > > failures because it can't copy over certain library files.  I'm prety sure
> > > these are good source RPMS, as they came from the Red Hat CD.
> > > 
> > > Thanks.
> > > 
> > > - Mike
> > get rpmfind package, it helps you
> > http://rufus.w3.org/linux/rpm2html/rpmfind.html
> >  - marek
> > LiNUX - Live free or die
> > ______________________________________________________________________
> > Office:                                                       Contact:
> > Technical University FVU SjF                           [EMAIL PROTECTED]
> > Letna 9                           pgp finger [EMAIL PROTECTED]
> > 041 87 Kosice Slovakia                           Tel. +421/95/602 2152
> > 
> 
> 
> -- 
> To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> as the Subject.
> 


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to