Docu review done: Tue 17 Oct 2023 10:53:15 AM CEST

Table of Content

Commands for

apt

CommandsDescriptions
apt install [packagename]=[versoin]installs package in given version
apt download [packagename]downloads only the deb file
apt changelog [packagename]shows changelog for package
’apt –with-new-pkgs upgrade [packagenames]`upgrade held back packages by installing new dependencies

apt-cache

CommandsDescriptions
apt-cache showpkg [packagename]shows dependencies in details
apt-cache statsshows local cache information
apt-cache policylists repositories and there priorities as well as pined packages
apt-cache policy [packagename]shows priorities for given package only (for all package versions)
apt-cache rdepends [packagename]lists reverse dependencies for package
apt-cache rdepends [packagename] --installedsame as above + only installed packages
apt-cache rdepends [packagename] --installed --no-recommends --no-suggestssame as above + no recommends and no suggests

apt-get

CommandsDescriptions
apt-get check [packagename]generates dependency tree, shows broken dependencies

apt-mark

CommandsDescriptions
hold [packagename]holds package to current installed version
unhold [packagename]removes hold on package
showholdlists all packages with have the hold mark set

apt-key

CommandsDescriptions
apt-keyinteract with gpg keys
apt-key export <keyid> | gpg --dearmour -o /etc/apt/trusted.gpg.d/<name of project/tyeam/...>.gpgExports and creates .gpg file for keys stored in trusted.db

apt-show-versions

CommandsDescriptions
apt-show-versionsparses the dpkg status file and the APT lists for the installed and available package versions and distribution and shows upgrade options within the specific distribution of the selected package
`apt-show-versions [-i–initialize]`
`apt-show-versions [-u–upgradable]`
`apt-show-versions [-p–package] [package-name] [-a
`apt-show-versions [-r–regex] [regex]`
`apt-show-versions [-R–regex-all] [regex]`

Files

DirectoryDescription
/var/cache/aptpackage cache
/var/lib/apt/listscontains (In)Release/Package from all apt sources