From eeebc62417809188a355d0449431195285d14c2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E6=B0=B8=E8=81=AA?= Date: Fri, 13 Mar 2020 07:22:15 +0000 Subject: [PATCH] GitBook: [master] one page modified --- linux/debian-ubuntu/clean-up-packages.md | 27 ++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/linux/debian-ubuntu/clean-up-packages.md b/linux/debian-ubuntu/clean-up-packages.md index c2b0ce0..a5d0a90 100644 --- a/linux/debian-ubuntu/clean-up-packages.md +++ b/linux/debian-ubuntu/clean-up-packages.md @@ -15,3 +15,30 @@ $ sudo apt-get install deborphan $ deborphan | xargs sudo apt-get purge -y ``` +## Remove obselote packages + +```bash +$ sudo aptitude search ?obsolete +$ sudo aptitude purge ~o +``` + +## Remove log files + +```bash +$ sudo apt-get install ncdu +$ sudo ncdu /var/log +``` + +## Disk Occupation GUI + +```text +$ baobab +``` + +## Remove high-capacity packages + +```text +$ sudo apt-get install debian-goodies +$ dpigs -H +``` +