From owner-freebsd-questions@FreeBSD.ORG Thu May 28 02:22:12 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1AE98106564A for ; Thu, 28 May 2009 02:22:12 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id 9192F8FC08 for ; Thu, 28 May 2009 02:22:11 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: by bwz9 with SMTP id 9so5190087bwz.43 for ; Wed, 27 May 2009 19:22:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=FCLs3MJfxHak1HQbOuQaVVGpg6MWTKMnYHPEuoXREHM=; b=wRuNA3j759IzcYT4ejzW5L8w401OyTIPO9H7rAjGGGvmj2ROLa/g+if+2Dtkj6iS1A 1OH7RPnD3Aj1DnF/IgFnb0/makdWtsOAWoreCFylZt58zAsnGcE6XSUTJkADllEDDcev mlvmsXrxx1El/tH0wkq8qauVNGtJXlhuedmFQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=qsITZAELzVyG12j6QYsTD/CzL1iPch75HlrOTIwaEiQgRcEfTrwgEnhcGXHJxRfYrp PxQzXKxOSAwKrAOtyIFfFDGhMYRtw5tiZdsi/mrW0ieG3iB3uCfczUg+e8EYN9VC341G SKHOk+5aDWZIScme+9DdqUUZquAaioTdUDEHU= Received: by 10.204.59.65 with SMTP id k1mr651751bkh.116.1243477330418; Wed, 27 May 2009 19:22:10 -0700 (PDT) Received: from gumby.homeunix.com (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mx.google.com with ESMTPS id d13sm5641325fka.32.2009.05.27.19.22.09 (version=SSLv3 cipher=RC4-MD5); Wed, 27 May 2009 19:22:10 -0700 (PDT) Date: Thu, 28 May 2009 03:22:07 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20090528032207.25de408a@gumby.homeunix.com> In-Reply-To: <18973.59970.379090.475951@jerusalem.litteratus.org> References: <20090527224351.1e94029b@bobcat.edu> <20090527205610.GA22384@slackbox.xs4all.nl> <20090528021346.54c91917@gumby.homeunix.com> <18973.59970.379090.475951@jerusalem.litteratus.org> X-Mailer: Claws Mail 3.7.1 (GTK+ 2.16.1; i386-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: removing distfiles? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 May 2009 02:22:12 -0000 On Wed, 27 May 2009 21:34:58 -0400 Robert Huff wrote: > > RW writes: > > > Personally I much prefer the less aggressive mode (distclean -D) > > which deletes files unreferenced by the ports tree, rather than > > unreferenced by installed ports. > > I use "-DD". With nearly 1000 ports on one machine, it's > important to realize many ports go months (and some years) between > updates and pain of downloading a fresh copy is minimal given a half > decent net connection. That's what I used to think until I deleted some java distfiles, and had to go though the rigmarole of getting all the various files manually. There's also the possibility that a distfile gets rerolled and local copy is the only one that matches the port checksums. Disk space is cheap, the extra files don't add up to much in practice. The real advantage of cleaning comes from not have ten copies of kdebase and the like. Deleting only the obsolete files also has the advantage of being entirely safe - so I do it from a periodic script.