From owner-freebsd-questions@FreeBSD.ORG Thu Dec 20 04:49:07 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 B71FD16A41A for ; Thu, 20 Dec 2007 04:49:07 +0000 (UTC) (envelope-from dkelly@hiwaay.net) Received: from smtp.knology.net (smtp.knology.net [24.214.63.101]) by mx1.freebsd.org (Postfix) with ESMTP id 56E3113C455 for ; Thu, 20 Dec 2007 04:49:07 +0000 (UTC) (envelope-from dkelly@hiwaay.net) Received: (qmail 19254 invoked by uid 0); 20 Dec 2007 04:49:06 -0000 Received: from unknown (HELO ?10.0.0.187?) (216.186.148.249) by smtp7.knology.net with SMTP; 20 Dec 2007 04:49:06 -0000 In-Reply-To: <4769D7BA.6080002@chuckr.org> References: <47688E99.4050802@pacific.net.sg> <47689079.4040700@gmail.com> <20071219162002.GB45237@gizmo.acns.msu.edu> <47694810.6020106@pacific.net.sg> <20071219172846.GB69360@Grumpy.DynDNS.org> <4769D7BA.6080002@chuckr.org> Mime-Version: 1.0 (Apple Message framework v753) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: David Kelly Date: Wed, 19 Dec 2007 22:49:17 -0600 To: Chuck Robey X-Mailer: Apple Mail (2.753) Cc: freebsd-questions , Erich Dollansky Subject: Re: rough method of cleaning the ports tree X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Dec 2007 04:49:07 -0000 On Dec 19, 2007, at 8:47 PM, Chuck Robey wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > David Kelly wrote: >> >> Remove all the temporary work files, and remove all distribution >> files >> that are not current with the ports' Makefiles: >> >> # portsclean -CD >> >> Requires the portupgrade port. > > In the past, doing a global make clean wouild die, especially on > ports that > were marked broken. I don;'t know if that's been fixed, because > about once a > month, i just do: > > find /usr/ports -type d -name work -exec rm -rf {} \; > > I've had the -delete fail from time to time, I can't remember the > error, but > doing the rm via the -exec keyword, that's never failed, and > cleaning out the > work directories, that absolutely cleans stuff up quickly. Not sure how deep the buffers are for wildcard expansion but apparently deep enough to do the above simpler. I use tcsh, selection of one's shell has everything to do with wildcard expansion. # cd /usr/ports # rm -r */*/work # -- David Kelly N4HHE, dkelly@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad.