Author: Ximenes Zalteca
Email: ximenes@null.net
Summary: How can I determine what package a file belongs to?
Date: Jun 28 1997

Answer:

If you actually have the file on your system, there's an easy way to determine
what package it came from using RPM. Let's say that I wanted to know where
/usr/bin/netcfg came from. This is what I would do to find out:

     $ rpm -qf /usr/bin/netcfg
     netcfg-2.16-1
     
However, what do you do if you find that a program requires 'libfoo.so.7' but
you have no idea what package it's in? There are a few things you can try:

     - Guess
     	  Our example, libfoo, is a good candidate for this. This file is likely
     	  to come in a package named libfoo or foo. Look around for packages
     	  with these names.
     - Ask a friend
     	  Your friend may very well have the needed file, and could do an 'rpm
     	  -qf' on it to find the name of the package.
     - Ask a mailing list
     	  This should be a last resort, after you've tried everything else. This
     	  is the equivalent of 'ask a friend' on a larger scale :) 
