apt-file
Introduction[edit]
apt-file
an be used to show which files are being included by a package.
Quote Debian package apt-file
:
search for files within Debian packages (command-line interface) apt-file is a command line tool for searching files contained in packages for the APT packaging system. You can search in which package a file is included or list the contents of a package without installing or fetching it.
Installation[edit]
The order in which these commands are run matter, [1] but the process is idempotent. This means it is possible to re-apply all of the following steps.
1. Delete /etc/apt/apt.conf.d/30usability-misc
because it contains settings that speed up APT
but break
apt-file
and command-not-found
. [2]
2. Install apt-file
.
Install apt-file
. To accomplish that, the following steps A. to D. need to be done.
A. Update the package lists.
B. Upgrade the system.
C. Install the apt-file
package.
Using apt
command line parameter --no-install-recommends
is in most cases optional.
D. Done.
The procedure of installing apt-file
is complete.
3. Run apt-file update
with root rights.
4. Done.
Setup of apt-file
has been completed.
Usage[edit]
Syntax:
Example:
See Also[edit]
command-not-found
- Speeding up "apt update" with Acquire::Languages=none and Contents-deb::DefaultEnabled=false - It's so much faster!
Footnotes[edit]
- ↑
Also
apt update
cannot be skipped since package contents files need to be downloaded. - ↑
Acquire::IndexTargets::deb::Contents-deb::DefaultEnabled false;
breaks
apt-file
because it requires/var/lib/apt/lists/*Contents*
to exist.See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=857090
Unfinished: This wiki is a work in progress. Please do not report broken links until this notice is removed, use Search Engines First and contribute improving this wiki.