From f9d92054d684a470ca0ba2a67d5823572f6a3ad6 Mon Sep 17 00:00:00 2001 From: Ashrith Mekala Date: Thu, 12 Mar 2020 10:51:26 -0700 Subject: [PATCH] Add apt cheat Includes apt cheat sheet --- cheats/apt.cheat | 55 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 cheats/apt.cheat diff --git a/cheats/apt.cheat b/cheats/apt.cheat new file mode 100644 index 00000000..13fa9663 --- /dev/null +++ b/cheats/apt.cheat @@ -0,0 +1,55 @@ +% apt + +# Update content listings from package repositories +apt update + +# List all available packages +apt list + +# List all installed packages +apt list --installed + +# Info about package (including description) +apt show -a + +# Show versions and archive areas of available package +apt list -a + +# Search in repository (packages and description) +apt search + +# Check updates for installed packages +apt list --upgradeable + +# Update all installed packages +apt upgrade + +# Upgrade all installed packages (add/remove dependencies) +apt full-upgrade + +# Update specific/individual package +apt install --only-upgrade + +# Downgrade package to a specific version +apt install = + +# Install a package from repository +apt install + +# Remove/delete package +apt remove + +# Remove/delete package (with config files) +apt purge + +# Install local dpkg package +apt install + +# List dependencies of package +apt depends + +# List reverse dependencies of package +apt rdepends + +# Remove un-needed packages and dependencies +apt autoremove