From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1Dvf4c-0005ak-1p for garchives@archives.gentoo.org; Thu, 21 Jul 2005 17:43:06 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j6LHel2H022760; Thu, 21 Jul 2005 17:40:47 GMT Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.201]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j6LHXZ7Y032069 for ; Thu, 21 Jul 2005 17:33:36 GMT Received: by zproxy.gmail.com with SMTP id r28so10659nza for ; Thu, 21 Jul 2005 10:33:54 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=ANzNMc11X5cAblqPNYETfiBXVM4kbgJaI0TyK1EcDWBMPyovpCCEkcdkxOt46XD0VytFFhNu69XSZIidOv0zbUTOrrgbjo+jyngR0//v/8V6jIBl0Yagm83Tb7RRezNCXhDwEuuwUbtW51pnNx2GSyJXjK7cyGe2+P6Zc37hNAg= Received: by 10.36.132.20 with SMTP id f20mr1139756nzd; Thu, 21 Jul 2005 10:33:34 -0700 (PDT) Received: from ?192.168.1.10? ([24.30.171.44]) by mx.gmail.com with ESMTP id 7sm9625992nzo.2005.07.21.10.33.33; Thu, 21 Jul 2005 10:33:34 -0700 (PDT) Message-ID: <42DFDC74.4060000@gmail.com> Date: Thu, 21 Jul 2005 10:33:40 -0700 From: Zac Medico User-Agent: Mozilla Thunderbird 1.0.5 (X11/20050719) X-Accept-Language: en-us, en Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] pruning /usr/portage/distfiles/ References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: d25faf2f-815e-432b-8125-9ea036d718f9 X-Archives-Hash: d5e9d3026f03878b10d03892ca61cda1 James wrote: > Hello, > > /usr is the only partion I seem to have trouble filling up. After > poking around I've decided to 'prune' /usr/portage/distfiles. > > Before automating this action, via crontab, I'm soliciting > any other, slicker/cooler/better method to auto prune > /usr/portage/distfiles. > > What I have done manually is: > EMOVING LARGE FILES IN /usr/protage/distfiles: > find ./ -size +100000 -exec ls -lag {} \; | less > > find ./ -size +100000 -print -exec rm {} \; > > again: > find ./ -size +50000 -exec ls -lag {} \; | less > find ./ -size +50000 -print -exec rm {} \; > again: > find ./ -size +20000 -exec ls -lag {} \; | less > find ./ -size +20000 -print -exec rm {} \; > > REMOVING OLD FILES IN /usr/protage/distfiles: > find ./ -mtime +180 -exec ls -lag {} \; | less > find ./ -mtime +180 -print -exec rm {} \; > > Running these commands manually caused the > /usr/ dir to reduce from 88% full to 55% full. > > Looking at the proposed lists of files to be removed, gave > me some confidence that it was OK to remove the files. > Suggestions as to better logic that I could integrate > into a script is welcome. > > Before hacking these commands into a script, I'd be interested > in comments and ideas....(a better mouse trap?) better logic, > like progressively running the commands unti the disk space > threshold is below 60% full or something. > > > James > See the make.conf(5) manpage for variables that adjust portage file locations. You can use DISTDIR to change the file download directory. There's something called distcleanr but I haven't tried it: http://www.leak.com.ar/~juan/code/distcleaner/ Zac -- gentoo-user@gentoo.org mailing list