From owner-freebsd-questions@FreeBSD.ORG Thu Dec 20 02:50:26 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 5B1CF16A41B for ; Thu, 20 Dec 2007 02:50:26 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: from mail4.sea5.speakeasy.net (mail4.sea5.speakeasy.net [69.17.117.6]) by mx1.freebsd.org (Postfix) with ESMTP id 4193413C516 for ; Thu, 20 Dec 2007 02:50:26 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: (qmail 12251 invoked from network); 20 Dec 2007 02:50:25 -0000 Received: from april.chuckr.org (chuckr@[66.92.151.30]) (envelope-sender ) by mail4.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 20 Dec 2007 02:50:25 -0000 Message-ID: <4769D7BA.6080002@chuckr.org> Date: Wed, 19 Dec 2007 21:47:22 -0500 From: Chuck Robey User-Agent: Thunderbird 2.0.0.6 (X11/20071107) MIME-Version: 1.0 To: freebsd-questions@freebsd.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> In-Reply-To: <20071219172846.GB69360@Grumpy.DynDNS.org> X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Dec 2007 02:50:26 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David Kelly wrote: > On Thu, Dec 20, 2007 at 12:34:24AM +0800, Erich Dollansky wrote: > >>>> Even though it will take quite a bit longer you should just do a >>>> "make distclean" in /usr/ports that way anything you hand modified >>>> will be retained (also you might want to consider keeping a local >>>> cvs repository if this is an issue) >>> That's a good idea too. >>> But, it might not do enough. So, still consider moving /usr/ports. >>> >> it does what I really want. I do not have a space problem. I simply >> want to get rid of the stuff which is not really needed. > > Tuning in late but this seems appropriate: > > 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. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHade6z62J6PPcoOkRArsWAJ46RfTDRHTli4g9z2yh3f3G6G1CqACbBr5C r6eLTzVu5BhhBIUogOWPBHU= =guYz -----END PGP SIGNATURE-----