Find which package contains a file:
  • dpkg -S somefile
  • with apt-file:
    • sudo apt install apt-file
    • sudo apt-file update
    • apt-file find somefile

Reinstall a package:
  • apt-get download debconf
  • sudo dpkg --force-all --install debconf_1.5.51ubuntu2_all.deb

Fix unfinished install:
  • sudo dpkg --configure -a

Find available versions of a package:
  • apt-cache madison python

-- KoenMartens - 15 Aug 2019

This topic: Notes > WebHome > AptCheatSheet
Topic revision: 15 Aug 2019, KoenMartens
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback