Here's a small script I wrote for that fishing purpose. Please note you're first supposed to copy all the RPMs into somewhere
#!/bin/bash -e RPMDIR=/someplace/RedHat/RPMS echo searching RedHat RPMS pool for i in ${RPMDIR}/*.rpm do if $(rpm -qlp $i | grep -s "$1" >/tmp/rpmsearch.$$) then echo $i echo ========= cat /tmp/rpmsearch.$$ rm /tmp/rpmsearch.$$ echo fi; done -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of John N. Alegre Sent: Monday, January 06, 2003 3:21 PM To: Red Hat List Subject: Missing libraries and a RPM "Teach a man to fish" question. Hello List, First the question. What packages are the following libraries in? libgconf-1.so.1, libgconf-gtk-1.so.1, libgnomevfs.so.0 and liboaf.so.0 ------------------------------------ Now teach me to fish. I am trying to back install some packages that I missed during a recent Red Hat 7.3 installation. When I get failed dependencies they are either the name of another missing package or the name of a missing library. Finding the missing package is easy, I just look for it on the installation disks and install it. My strategy for finding missing libraries is to look on a different Red Hat 7.1 installation running on my network using the commands bin-sh# locate libfindme.s.0.0 /bin/lib/libfindme.s.0.0 bin-sh# rpm -qf /bin/lib/libfindme.s.0.0 this-package-need-installed.1.9-22.i386.rpm and then finding that current package on the installation disks. This failed with the above four libs because they were not on the 7.1 system. Is there a list of what libraries are installed by which .rpm packages?? Is there some cute rpm command option that will reveal this, i.e. the package a missing lib is in? Thanks. All comments welcome. john ------------------------------------ John N. Alegre o Andante Systems o eCommerce Consulting o Custom Web Development <*{{{{}>< ------------------------------------ E-Mail: John N. Alegre <[EMAIL PROTECTED]> Date: 06-Jan-03 Time: 07:04:39 ------------------------------------ -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list