|Developer(s)||Sebastien J. Gross|
|Platform||Debian and its derivatives|
|Type||Package management system|
|License||GNU General Public License|
apt-file is a command in the Advanced Packaging Tool family that allows you to find which package includes a specific file.
Additionally apt-file can be used to list all files included in a package without installing or downloading it.
Once installed, apt-file needs to have its database created with the command (as root):
This command attempts to fetch the Contents-<ARCH>.gz files from the remote sources that are specified in /etc/apt/sources.list. Once this is done, the database can be queried for a list of packages that contain a file, with or without the path specified:
$ apt-file search filename $ apt-file search path/to/filename
To list the contents of an uninstalled package:
$ apt-file list packagename
|This article does not cite any references or sources. (March 2012)|