Skip to content

Instantly share code, notes, and snippets.

@wildlarva
Last active July 2, 2021 04:57
Show Gist options
  • Save wildlarva/6281b803887747c735f0d3658b9a6299 to your computer and use it in GitHub Desktop.
Save wildlarva/6281b803887747c735f0d3658b9a6299 to your computer and use it in GitHub Desktop.
Useful apt/dpkg commands

Useful apt/dpkg commands

Explore package contents

# Find file in installed packages
dpkg -S <file>

# List files in a package
dpkg -L <pakcage>

# Find file in all packages
apt-file search <file>

Organize packages

# Mark apt package as auto
sudo apt-mark auto <package>

# Remove unnecessary packages
sudo apt autoremove
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment