On Thu, 16 Nov 2000, Thomas Ribbrock wrote: > On Wed, Nov 15, 2000 at 07:02:39PM -0500, Anthony E . Greene wrote: > > Or, more elegantly: > > > > [user@localhost user]$ rpm -qf `which ping` > > iputils-20000121-2 > > Or, if you don't have it installed but have the CD with the RPMs: > > cd RedHat/RPMS > rpm -qilp *|grep ping > > ;-) > > Thomas and if you do this prequently enough, you'll find this little script handy (and with cleaner output) [cgalpin@pooh cgalpin]$ less bin/rpmgrind #!/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 _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list