Actions

apt-file

From Whonix



Aptfiles1614223640.jpg

Introduction[edit]

apt-file an be used to show which files are being included by a package.

Quote Debian package apt-file [archive]:

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 [archive] because it contains settings that speed up APT [archive] but break apt-file and command-not-found. [2]

sudo rm -f /etc/apt/apt.conf.d/30usability-misc

2. Install apt-file.

Install apt-file.

1. Update the package lists.

sudo apt-get update

2. Upgrade the system.

sudo apt-get dist-upgrade

3. Install the apt-file package.

Using apt-get command line parameter --no-install-recommends is in most cases optional.

sudo apt-get install --no-install-recommends apt-file

The procedure of installing apt-file is complete.

3. Run apt-file update with root rights.

sudo apt-file update

4. Done.

Setup of apt-file has been completed.

Usage[edit]

Syntax:

sudo apt-file package-name

Example:

sudo apt-file nano

See Also[edit]

Footnotes[edit]

  1. Also apt update cannot be skipped since package contents files need to be downloaded.
  2. 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 [archive]



Fosshost is sponsors Kicksecure ™ stage server Whonix old logo.png
Fosshost About Advertisements

Search engines: YaCy | Qwant | ecosia | MetaGer | peekier | Whonix ™ Wiki


Follow: 1024px-Telegram 2019 Logo.svg.png Iconfinder Apple Mail 2697658.png Twitter.png Facebook.png Rss.png Reddit.jpg 200px-Mastodon Logotype (Simple).svg.png

Support: 1024px-Telegram 2019 Logo.svg.png Discourse logo.png Matrix logo.svg.png

Donate: Donate Bank Wire Paypal Bitcoin accepted here Monero accepted here Contriute

Whonix donate bitcoin.png Monero donate Whonix.png United Federation of Planets 1000px.png

Twitter-share-button.png Facebook-share-button.png Telegram-share.png Iconfinder Apple Mail 2697658.png Reddit.jpg Hacker.news.jpg 200px-Mastodon Logotype (Simple).svg.png

Want to make Whonix ™ safer and more usable? We're looking for helping hands. Check out the Open Issues and development forum.

https link onion link Priority Support | Investors | Professional Support

Whonix | © ENCRYPTED SUPPORT LP | Heckert gnu.big.png Freedom Software / Osi standard logo 0.png Open Source (Why?)

The personal opinions of moderators or contributors to the Whonix ™ project do not represent the project as a whole.

By using our website, you acknowledge that you have read, understood and agreed to our Privacy Policy, Cookie Policy, Terms of Service, and E-Sign Consent.