Skip to main content

Posts

Showing posts from July, 2010

How do I find which package contains a certain file?

What to do if you need to install or build a package on Linux and it wants a missing file/library/etc... Have you ever tried to install package or some vendor software, only to find that the install fails due to a missing library? Here is a collection of methods for finding the package that contains the missing file. Red Hat Enterprise Linux/CentOS Using yum yum whatprovides /full/path/to/missing/filename Note: In all of these processes, fill in the actual filename and path for which you are looking. Using rpmfind site Browse to http://rpm.pbone.net/index.php3/stat/2/simple/2 Enter filename or /full/path/to/missing/filename in the search box (start with just the filename) Check boxes of rpm-based distributions in which you want to search Click search Debian/Ubuntu apt-file sudo aptitude install apt-file sudo apt-file update apt-file search filename or apt-file search /full/path/to/missing/filename Using Debian's website Browse to http://www.debia