[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how do you find installed bloatware to apt purge?



On Wed Mar 5, 2025 at 2:22 PM GMT, Runamile Czyborra wrote:
my df -hl / is at 8.7G/11G=89% after sudo apt update && sudo apt install python3 pip && sudu pip3 install vosk in my crouton and what do you use to ergonomically present installed candidates to apt purge a few gigabytes?

I favour "duc" (as opposed to, e.g. ncdu) for exploring the size of the filesystem. You run it in two passes: an indexing stage, and a browsing stage. The browsing stage is very fast since it doesn't need to index. I run the indexing stage periodically via cron or systemd timers.

	duc index /
	duc ui /

There are several duc browsers: ui is an ncurses-style TUI; there's also CLI, GUI and web-based ones. The GUI and web-based ones use a nice pie chart presentation.


For Debian packages specifically, you can use dpigs from the debian-goodies package. I wrote an alternative for situations where I don't want to install debian-goodies and its transitive dependencies:

	awk -v RS='' '/Status:.*installed\n/' /var/lib/dpkg/status \
	    | grep -E '^(Installed-Size|Package)' \
	    | cut -d: -f2- \
	    | paste - -  \
	    | sort -rnk2 \
	    | awk '{ print $2 "\t" $1 }' \
	    | head -n 10

--
Please do not CC me for listmail.

👱🏻	Jonathan Dowland
✎	 jmtd@debian.org
🔗	https://jmtd.net


Reply to: