aptinstall<package>
aptinstall<package>=<version># pin to a specific versionaptinstall--no-install-recommends<package>
aptremove<package># remove but keep config filesaptpurge<package># remove + config filesaptautoremove# remove unused dependencies
aptsearch<keyword># search package names/descriptionsaptshow<package># full package metadataaptlist--installed# all installed packagesaptlist--installed|grep<name># filter installedaptlist--upgradable# packages with available upgrades
apt-cacheshowpkg<package># show package versions and depsapt-cachedepends<package># direct dependenciesapt-cacherdepends<package># reverse dependencies (who depends on it)apt-cachepolicy<package># installed vs candidate version, pinning
# Install a local .debdpkg-ipackage.deb
# List all installed packagesdpkg-l
dpkg-l|grep<name>
# List files installed by a packagedpkg-L<package>
# Which package owns a filedpkg-S/usr/bin/cwebp
# webp: /usr/bin/cwebp# Package status / infodpkg-s<package>
# Reconfigure an installed packagedpkg-reconfigure<package>