/usr/portage/distfiles/

This wiki page is about a path or a file in the Linux file system. Be bold and improve it! Describe its purpose and its use, which program created it and uses it, which configuration settings it might be dependent on, and which Linux distributions typically have this file by default while others might not.

If you have any questions about the content on this page, don't hesitate to open a new ticket and we'll do our best to assist you.

This is where portage caches the files it downloads to build each package.
If it is not cleaned regularly, this directory can become really large.

https://wiki.gentoo.org/wiki/DISTDIR
The default value can be overriden in /etc/portage/make.conf:

DISTDIR=/usr/portage/distfiles

http://linux.overshoot.tv/wiki/portage
https://wiki.gentoo.org/wiki/Knowledge_Base:Remove_obsoleted_distfiles
https://wiki.gentoo.org/wiki/Eclean

Cron

For ease of mind, create a weekly cron job:
/etc/cron.weekly/eclean-dist


#!/bin/sh
# http://linux.overshoot.tv/usr/portage/distfiles
eclean-dist --deep --time-limit=2w