Date: Wed, 19 Dec 2007 21:47:22 -0500 From: Chuck Robey <chuckr@chuckr.org> To: freebsd-questions@freebsd.org Cc: Erich Dollansky <oceanare@pacific.net.sg> Subject: Re: rough method of cleaning the ports tree Message-ID: <4769D7BA.6080002@chuckr.org> In-Reply-To: <20071219172846.GB69360@Grumpy.DynDNS.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>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4769D7BA.6080002>
