From owner-freebsd-ports@FreeBSD.ORG Sat May 28 08:32:39 2005 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7CAD316A41C for ; Sat, 28 May 2005 08:32:39 +0000 (GMT) (envelope-from matt_mills@btopenworld.com) Received: from smtp808.mail.ukl.yahoo.com (smtp808.mail.ukl.yahoo.com [217.12.12.198]) by mx1.FreeBSD.org (Postfix) with SMTP id C7D0543D1F for ; Sat, 28 May 2005 08:32:38 +0000 (GMT) (envelope-from matt_mills@btopenworld.com) Received: from unknown (HELO ?192.168.0.1?) (matt?mills@btopenworld.com@81.129.185.50 with plain) by smtp808.mail.ukl.yahoo.com with SMTP; 28 May 2005 08:32:37 -0000 Message-ID: <42982CE7.1090908@btopenworld.com> Date: Sat, 28 May 2005 09:33:43 +0100 From: Matt Mills User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Matthew D. Fuller" References: <42970476.6050105@btopenworld.com> <20050527231953.GB1464@over-yonder.net> In-Reply-To: <20050527231953.GB1464@over-yonder.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org Subject: Re: /usr/ports/distfiles maintenance X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 May 2005 08:32:39 -0000 Matthew D. Fuller wrote: > On Fri, May 27, 2005 at 12:28:54PM +0100 I heard the voice of > Matt Mills, and lo! it spake thus: > >>Something which has recently struck me as an unanswered question. >>How do you all maintain your /usr/ports/distfiles directory? > > I'm a simple guy, myself; I don't see a big need for various automated > (and EXPENSIVE! What're you people THINKING poking around 12,000-some > distinfo files?!) solutions. When /usr/ports starts getting full > (approx. "every so often"), I poke around and delete some of the older > and bigger distfiles. When we pass versions of really big stuff (like > X, or TeX, Mozilla, etc.) I delete the old ones. You've got du, > you've got `ls -l | sort -n +4`... there's lots of low-hanging fruit > without getting complex, especially since I'll bet you've got more > space for ports than I do. This is almost exactly what I did before I asked the above question. Usually I would "ls -l | sort +5n", then delete old large sources (firefox, perl, Xorg etc.). Of course, portsclean is a far simpler and more thorough method. > And, of course, every once in a while I get bored and newfs /usr/ports > entirely and re-co everything. Just for sport. I've never resorted to that, and certainly shouldn't need to thanks to portsclean. :) If I notice that free space on /usr has taken a hit, a simple "portsclean -C" normally finds a large work directory that I forgot about. Thanks for your insights, it is good to know that I wasn't the only person doing things manually! -- Matt