diff options
-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> |