diff options
author | Marcin Chrzanowski <m@m-chrzan.xyz> | 2024-01-30 21:49:35 +0100 |
---|---|---|
committer | Marcin Chrzanowski <m@m-chrzan.xyz> | 2024-01-30 21:49:35 +0100 |
commit | a1ca483981ae3eda75bcea26921aab8f686d3795 (patch) | |
tree | c0d0f0f08e533bb00d96dcbf00baf9837df3a6e3 /apt.md | |
parent | 8c533e07efe4180bfadaddcf749c0b5ff5825023 (diff) |
Add apt package removal instructions
Diffstat (limited to 'apt.md')
-rw-r--r-- | apt.md | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -3,3 +3,24 @@ ## List installed packages apt list --installed + +By size + + dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n + +## Remove packages + +Only removes the binary, leaving behind configs, logs, etc. Does not remove +dependencies. + + apt remove <package> + +Remove orphaned dependencies: + + apt autoremove + +Purge package (i.e. removes everything, including configs, etc.) + + apt purge <package> + # or + apt remove --purge <package> |