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…

8 comments for this entry:
  1. Avuton Olrich

    eclean works

  2. Steven

    Just saw this on planet larry, app-portage/gentoolkit has a tool called eclean which I use, it seems to do the job ;)

  3. seek

    eclean-dist -d does a great job, cron is doing it for me. ;D

  4. rullzer

    Ah nice well then I do not have to code it.
    I should really learn also at 1 am to use google :P

  5. serzh-z

    Does eclean work with paludis, custom repositories and directories like cvs-src, svn-src etc?

  6. rullzer

    Probably. I geuss that it just uses the ebuilds. But I use portage so can’t test it sorry :)

  7. Patrick

    I like to use app-admin/tmpwatch for that job. It’s also great at keeping other places clean.

  8. automotive jacks

    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?

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!