After a number of years, my /usr/portage/distfiles has gotten up to about 18 GB of stuff, so I figured that for the new year I'd clean it out a bit. Since it's almost 10k files, though I knew I'd need a script if I didn't just want to wipe it. Here's what I came up with.

It attempts to guess outdated packages by regex and modification date, so without arguments it just shows the most recent file and the size of the older ones, ordered by the file groups taking the most space:

eclean, contained in app-portage/gentoolkit, could have been used instead.

Ah, thanks. Guess I didn't look hard enough for the "right" way.

That said, eclean -p distfiles seems to take a few minutes to run, so I'm still happy to have my quick approximation. (Especially since I get most of the advantage just from cleaning up NVidia drivers and a handful of other packages.)_________________~ Scott "me22" McMurray