Find which RPM contains a specific file
On Red Hat, use the following commands to find which RPM package contains a file. Using rpm:
# rpm -qf /usr/lib/libdb.so.2
Using yum:
# yum whatprovides */libdb.so
Using up2date:
# up2date --whatprovides=libdb.so.2