Last active
July 6, 2018 11:03
-
-
Save ggarnier/a35992ac57b0ab97d287d4429594c7cc to your computer and use it in GitHub Desktop.
apt-get cheatsheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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