From owner-freebsd-questions@FreeBSD.ORG Thu Nov 15 14:24:11 2007 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 8C06E16A41A for ; Thu, 15 Nov 2007 14:24:11 +0000 (UTC) (envelope-from doug@polands.org) Received: from ms-smtp-04.rdc-kc.rr.com (ms-smtp-04.rdc-kc.rr.com [24.94.166.116]) by mx1.freebsd.org (Postfix) with ESMTP id 4BACB13C45D for ; Thu, 15 Nov 2007 14:24:11 +0000 (UTC) (envelope-from doug@polands.org) Received: from corinth.polands.org (CPE-75-87-219-217.new.res.rr.com [75.87.219.217]) by ms-smtp-04.rdc-kc.rr.com (8.13.6/8.13.6) with ESMTP id lAFEO1vG003835; Thu, 15 Nov 2007 08:24:01 -0600 (CST) Received: from omnihp-rj45.polands.org (ammon.polands.org [172.16.1.7]) by corinth.polands.org (8.13.8/8.13.8) with ESMTP id lAFEO02o059255; Thu, 15 Nov 2007 08:24:00 -0600 (CST) (envelope-from doug@polands.org) Message-ID: <473C5671.8060207@polands.org> Date: Thu, 15 Nov 2007 08:23:45 -0600 From: Doug Poland User-Agent: Thunderbird 2.0.0.6 (X11/20071031) MIME-Version: 1.0 To: Jonathan Horne References: <20071115082038.70ed3grmyok0480g@webmail.dfwlp.org> In-Reply-To: <20071115082038.70ed3grmyok0480g@webmail.dfwlp.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: ClamAV 0.88.4/4799/Thu Nov 15 06:36:46 2007 on corinth.polands.org X-Virus-Status: Clean Cc: freebsd-questions@freebsd.org Subject: Re: selfbuild packages repository 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, 15 Nov 2007 14:24:11 -0000 Jonathan Horne wrote: > lately, ive been exclusively doing 'make package-recursive' and > 'portupgrade -apP', and have thus collected quite a lot of packages over > the past 6 months (which use to keep multiple systems updated). > > on my NFS server, my /usr/ports/packages/All directory has built up many > incrementing versions of the same packages. is there a way to keep the > ./All directory culled back match whatever is in ./Latest? > > im not a programmer and am about as novice as you can get when it comes > to shell scripting, but im seeing somethign that could compare ./Latest > with ./All, and anything that is linked from Latest to All would be > kept, and anything that no longer has a symlink, would be purged. > > can anyone help me out with a nice way of doing this? > I think that's what portsclean -P is all about. -- Regards, Doug