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


FROM: http://superuser.com/questions/10997/find-what-package-a-file-belongs-to-in-ubuntu-debian

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?

link|flag




3 Answers

up vote 7 down vote accepted
apt-file search filename

or

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

cancel script completely on ctrl-c

I found this question interesting: basically how to cancel completely a script and all child processes : You do this by creating a subro...