Saturday, December 18, 2010

missing files

when installing from source file, using make, and it says error "file not found" check apt-file utility for which package you need to install


I frequently find myself missing a program, man page, or other file when working on my Ubuntu 8.04 system. Is there any simple way to look up what package contains a given file (whether it is installed already or not)? Maybe some obscure option for apt or dpkg?


3 Answers

up vote 7 down vote accepted
apt-file search filename


apt-file search /path/to/file

if you need apt-file, use:

apt-get install apt-file

you may also want to update its database:

sudo apt-file update

No comments:

Post a Comment