I wrote this once to accomplish the same, but with cleaner output
#!/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 Tue, 10 Apr 2001, Anand Buddhdev wrote:
> On Tue, Apr 10, 2001 at 12:36:22PM -0600, Ashley M. Kirchner wrote:
>
> > And I forgot to mention this would be for commands that have NOT been
> > installed yet.
>
> Well, if you have the RPMs, and just want to search them for the command,
> then:
>
> for rpm in *.rpm
> > do
> > if `rpm -qlp $rpm | grep ping`
> > echo $rpm
> > fi
> > done
>
> Or something along those lines.
>
> --
> Anand
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list