On Sunday 03 April 2005 02:48, James wrote: > Hi all, > > I've been running Gentoo for a week or two now, all is going well, but > I'm using up a lot of hard disk space with all these sources I've > downloaded and uncompressed. > > I've had a quick look in the Portage docs, but can't find anything that > looks like a solution to this problem. So my question: is there a > function in Portage that allows me to delete old unpacked source files > and tarballs (e.g. emerge --[whatever]), or should I go hunt them down > in /usr/portage... and delete them 'manually'?
There should be no unpacked sources left around other than the kernels. Failed builds are left behind in /var/tmp/portage. Successful builds should completely remove all traces from that directory now. It's safe to delete everything in there as long as portage isn't running though. For distfiles, I do similar to the following: # mv /usr/portage/distfiles /usr/portage/distfiles.old # mkdir -p /etc/portage # echo local /usr/portage/distfiles.old > /etc/portage/mirrors # emerge -ef world # rm /etc/portage/mirrors # rm -rf /usr/portage/distfiles.old Regards, Jason Stubbs -- gentoo-user@gentoo.org mailing list