Removing abandond distfiles
by rullzer on Jan.23, 2008, under Gentoo, Linux, Programming things
After going trough my /usr/portage/distfiles/ I found a lot of tarballs that belong to versions of packages that are no longer in portage. Now these tarballs take up a lot of space. Doing a nice rm -rf * will ofcource take care of the problem but then all the tarballs that are still in portage will have to be downloaded again if once of the gentoo boxes in the network needs it (currently 4). Now it is not that I have a datalimit but it is a matter of principle.
So there must be an easier solution. I’ll try to look into it but python is writen in portage so maybe I can just include it and check for all packages and versions and remove the tarballs that have no corresponding ebuild. This script doesn’t have to run every day since it would take some time I guess but once a week or so just to keep the system clean.
Please let me know if anybody is interested in such an app or knows if it already exists…





January 23rd, 2008 on 3:20 am
eclean works
January 23rd, 2008 on 3:56 am
Just saw this on planet larry, app-portage/gentoolkit has a tool called eclean which I use, it seems to do the job
January 23rd, 2008 on 9:55 am
eclean-dist -d does a great job, cron is doing it for me. ;D
January 23rd, 2008 on 10:28 am
Ah nice well then I do not have to code it.
I should really learn also at 1 am to use google
January 23rd, 2008 on 4:05 pm
Does eclean work with paludis, custom repositories and directories like cvs-src, svn-src etc?
January 23rd, 2008 on 4:20 pm
Probably. I geuss that it just uses the ebuilds. But I use portage so can’t test it sorry
January 23rd, 2008 on 5:35 pm
I like to use app-admin/tmpwatch for that job. It’s also great at keeping other places clean.
March 14th, 2009 on 2:50 pm
It’s the first time I comment here and I must say that you share genuine, and quality information for bloggers! Good job.
p.s. You have a very good template for your blog. Where have you got it from?