Skip to content

Instantly share code, notes, and snippets.

@ggarnier
Last active July 6, 2018 11:03
Show Gist options
  • Save ggarnier/a35992ac57b0ab97d287d4429594c7cc to your computer and use it in GitHub Desktop.
Save ggarnier/a35992ac57b0ab97d287d4429594c7cc to your computer and use it in GitHub Desktop.
apt-get cheatsheet
# Search available packages with "gimp" in the name or description
apt-cache search gimp
# Check available versions for package "gimp"
apt-cache madison gimp
# Check installed and available versions for package "gimp"
apt-cache policy gimp
# List packages installed via apt
apt list --installed
# List available updates
apt list --upgradable
# List all installed packages (via apt or not)
dpkg -l
# Filter installed packages by name
dpkg -l "*gimp*"
# Install specific version of "gimp" package
sudo apt-get install gimp=2.8.22-1
# Mark a specifc package to be ignored in future updates
apt-mark hold gimp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment