Cleaning out distfiles on Gentoo

One thing about Gentoo is that it takes a bit of hard disk space to run it. For example the distfiles of outdated ebuilds do not automatically get cleaned out.

But doing so is a breeze with eclean utility from app-portage/gentoolkit

To clean (adding -i will prompt you before deletion, so it is also a dry run):
eclean -i distfiles


There are any number of ways you can do automatic cleaning, a few that come to mind are:
  • adding cron task
  • /etc/portage/postsync.d to clean out after every sync

No comments:

Post a Comment