From owner-freebsd-ports@FreeBSD.ORG Tue Mar 25 19:52:44 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A067106566C for ; Tue, 25 Mar 2008 19:52:44 +0000 (UTC) (envelope-from wxs@atarininja.org) Received: from syn.atarininja.org (syn.csh.rit.edu [129.21.60.158]) by mx1.freebsd.org (Postfix) with ESMTP id 428608FC19 for ; Tue, 25 Mar 2008 19:52:44 +0000 (UTC) (envelope-from wxs@atarininja.org) Received: by syn.atarininja.org (Postfix, from userid 1001) id 2EF925C17; Tue, 25 Mar 2008 15:53:43 -0400 (EDT) Date: Tue, 25 Mar 2008 15:53:43 -0400 From: Wesley Shields To: Garrett Cooper Message-ID: <20080325195343.GB23226@atarininja.org> References: <47E949A3.5030103@gmail.com> <4B48E94D-058A-4F79-93B2-B6E498C0B9CE@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B48E94D-058A-4F79-93B2-B6E498C0B9CE@gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-ports@freebsd.org, Lars Stokholm Subject: Re: Cleaning /var/db/ports 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: Tue, 25 Mar 2008 19:52:44 -0000 On Tue, Mar 25, 2008 at 11:52:57AM -0700, Garrett Cooper wrote: > On Mar 25, 2008, at 11:51 AM, Lars Stokholm wrote: > >> Apart from doing 'rm -r /var/db/ports/*' is there a way of cleaning the >> folder of stale folders and files? >> >> I know it takes up no space and that I might aswell leave it alone, but >> it'd be interesting to know. :) >> >> Thanks, >> Lars > > pkg_cutleaves -- an excellent Perl port that will help you out with that. Which, unfortunately won't clean up /var/db/ports. I'm not 100% certain but I think the only information stored in /var/db/ports are distfile recordings and options selections? As such, nothing overly important is recorded there and you might be OK to just blow it all away. Of course I'd make a backup of it first just incase I am wrong. -- WXS