apt-file

apt-file shows information about files and related packages

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 systemPackage nameInstallation
Debianapt-file
apt install apt-file
Ubuntuapt-file
apt install 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