apt-file: show information about packages and related files
apt-file shows information about files and related packages
Typical usage: package management, system administrationIntroduction into apt-file
The apt-file
command shows information about packages and the available files. It can search both in the package name and provided files, even if a package is not installed.
Installation
When apt-file is not installed by default, it can be added to the system using the relevant software package.
Package information for apt-file
Operating system | Package name | Installation |
---|---|---|
Debian | apt-file |
|
Ubuntu | apt-file |
|
Your Linux distribution using a different package? Share your feedback.
Usage
Examples using apt-file
Link file to a package
Show which package provides the /etc/wgetrc file
apt-file search /etc/wgetrc
See files as part of package
Show files that are part of the wget package
apt-file show wget
Frequently Asked Questions
What is the apt-file command and its purpose?
The command apt-file can help with discovering which files belong to a package or what package installed or provides them. Learn which options to use.
Which package provides the apt-file command?
The command apt-file is provided by the apt-file package.
Related and similar commands
Linux has a lot of tools and commands available and sometimes you just need that little other tool. Here is a list of commands that are similar or related to apt-file:
Command | Category | Summary |
---|---|---|
apt | package management | Package manager |
Also 💙 the command-line or terminal? Here is a set of cheat sheets for Linux to get more done from within the shell: