From a1ca483981ae3eda75bcea26921aab8f686d3795 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Tue, 30 Jan 2024 21:49:35 +0100 Subject: Add apt package removal instructions --- apt.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/apt.md b/apt.md index 92392f0..d5fa1d9 100644 --- a/apt.md +++ b/apt.md @@ -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 + +Remove orphaned dependencies: + + apt autoremove + +Purge package (i.e. removes everything, including configs, etc.) + + apt purge + # or + apt remove --purge -- cgit v1.2.3