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?
or
To install apt-file, use:
you will need to update its database before you can use it:
|
|||||||||||
|
|
I found Wajig...
eg.
Wajig is a handy command line or console tool which wraps all the apt-get, dpkg goodness that you never wanted to learn. . To install wajig use:
That command 'whichpackage' itself depends on apt-file you will still need to update its database before you can use it: - I don't know yet if wajig update whixh does an apt-get update also updates the file cache, but I expect it may.
( and Super Cow, Easter egss ? ! ) |
|||
|
|
|
Try searching for files using http://www.kodkast.com/applications/find-which-package-file-belongs-to This is an application to search for files which are contained in different rpms/linux packages, and is very useful when you dont even have the rpm installed on your machine. |
|||
|
|
|
You can also use dlocate. From the man page;
|
|||
|
|
|
packages.debian.org is what I always use to accomplish this task. It is superior over apt-file because it can find parts of filenames as well. It's also linked up to the main packages list which will list descriptions, bugs, etc. All in all a good website. Not as useful from the command line, but still quite useful. For speed, I bookmarked the url:
in Firefox, and added "debfind" as a keyword (click "more" in the bookmark manager with it hilighted), so I can just type "debfind " and it will work. You can change 'suite' it from unstable to stable or testing if you like, for other versions of the distribution. |
||||
|
|
|
(Debian/Ubuntu) Discover what package a file belongs to:
|
|||||
|