apt-file

From Wikipedia, the free encyclopedia
Jump to: navigation, search
apt-file
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.

Usage[edit]

Once installed, apt-file needs to have its database created with the command (as root):

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 an uninstalled package:

$ apt-file list packagename

References[edit]

External links[edit]