From owner-freebsd-ports@FreeBSD.ORG Wed Jul 7 18:25:43 2004 Return-Path: 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 0BD4F16A4CF; Wed, 7 Jul 2004 18:25:43 +0000 (GMT) Received: from grebe.mail.pas.earthlink.net (grebe.mail.pas.earthlink.net [207.217.120.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id B9B2E43D39; Wed, 7 Jul 2004 18:25:42 +0000 (GMT) (envelope-from rpratt1950@earthlink.net) Received: from fl-69-69-7-167.dyn.sprint-hsd.net ([69.69.7.167] helo=kt.weeble.com) by grebe.mail.pas.earthlink.net with smtp (Exim 3.33 #1) id 1BiH6y-0007PU-00; Wed, 07 Jul 2004 11:25:40 -0700 Date: Wed, 7 Jul 2004 14:28:12 -0400 From: Randy Pratt To: conrads@cox.net Message-Id: <20040707142812.181c5158.rpratt1950@earthlink.net> In-Reply-To: References: X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd4.10) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org cc: freebsd-ports@freebsd.org Subject: Re: portsclean -DD X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jul 2004 18:25:43 -0000 On Wed, 07 Jul 2004 12:25:39 -0500 (CDT) "Conrad J. Sabatier" wrote: > The man page for portsclean is a little vague on the exact semantics of > using "portsclean -DD". > > I understand that -D specified once cleans out any distfiles for ports > which are not currently installed, but specified twice, does it *only* > clean out distfiles that are unreferenced by any port in the tree, or > does it do this in addition to the behavior of the single -D switch? > > The reason I ask is that I'd like to share a distfiles directory > between two machines, and I'd like to be able to simply clean out any > distfiles that are unreferenced by any port in the tree without > disturbing the distfiles for any ports that may be installed on either > box. Portsclean -DD will clean distfiles for ports which are not installed _and_ distfiles that are not used by anything in the ports tree. You can verify it for yourself with: portsclean -nDD since the with the -n, no files are actually deleted and you can see what action it would have taken. HTH, Randy --