From Wikipedia, the free encyclopedia
Jump to: navigation, search
Developer(s) Sebastien J. Gross
Stable release 2.4.0
Written in Perl
Operating system Cross-platform
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:

apt-file update

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 a not-yet-installed package:

$ apt-file list packagename


External links[edit]