Re: rough method of cleaning the ports tree
- From: David Kelly <dkelly@xxxxxxxxxx>
- Date: Wed, 19 Dec 2007 22:49:17 -0600
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@xxxxxxxxxx
========================================================================
Whom computers would destroy, they must first drive mad.
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- References:
- rough method of cleaning the ports tree
- From: Erich Dollansky
- Re: rough method of cleaning the ports tree
- From: Aryeh M. Friedman
- Re: rough method of cleaning the ports tree
- From: Jerry McAllister
- Re: rough method of cleaning the ports tree
- From: Erich Dollansky
- Re: rough method of cleaning the ports tree
- From: David Kelly
- Re: rough method of cleaning the ports tree
- From: Chuck Robey
- rough method of cleaning the ports tree
- Prev by Date: Re: Lost FreeBSD slices (labels?) after NetBSD install -- please help!!
- Next by Date: Can't start more than one gnome-session as the same user?
- Previous by thread: Re: rough method of cleaning the ports tree
- Next by thread: Re: rough method of cleaning the ports tree
- Index(es):