Docu review done: Tue 17 Oct 2023 10:53:15 AM CEST
Table of Content
Commands for
apt
Commands | Descriptions |
---|---|
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
Commands | Descriptions |
---|---|
apt-cache showpkg [packagename] | shows dependencies in details |
apt-cache stats | shows local cache information |
apt-cache policy | lists 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] --installed | same as above + only installed packages |
apt-cache rdepends [packagename] --installed --no-recommends --no-suggests | same as above + no recommends and no suggests |
apt-get
Commands | Descriptions |
---|---|
apt-get check [packagename] | generates dependency tree, shows broken dependencies |
apt-mark
Commands | Descriptions |
---|---|
hold [packagename] | holds package to current installed version |
unhold [packagename] | removes hold on package |
showhold | lists all packages with have the hold mark set |
apt-key
Commands | Descriptions |
---|---|
apt-key | interact with gpg keys |
apt-key export <keyid> | gpg --dearmour -o /etc/apt/trusted.gpg.d/<name of project/tyeam/...>.gpg | Exports and creates .gpg file for keys stored in trusted.db |
apt-show-versions
Commands | Descriptions |
---|---|
apt-show-versions | parses 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
Directory | Description |
---|---|
/var/cache/apt | package cache |
/var/lib/apt/lists | contains (In)Release/Package from all apt sources |