Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jan 2002 09:51:50 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Bernie <Bernie_X@myrealbox.com>
Cc:        FreeBSD-Newbies@FreeBSD.ORG
Subject:   Re: cleanning ports
Message-ID:  <20020108075150.GF50046@hades.hell.gr>
In-Reply-To: <20020106190830.S59765-100000@BLAST>
References:  <20020106190830.S59765-100000@BLAST>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-01-06 19:11:17, Bernie wrote:
>
> hi,
>
> if i wanna clean all the obj etc from the ports tree,
> can i go to /usr/ports and do a 'make clean' ? or do i have
> to make a script that changes to all subdirs and do 'make clean'
> on each dir?
>
> i have installed quite a few but havent make clean on many of them...

Well, as a matter of fact that's exactly what 'make clean' will do, if
you run it from /usr/ports :-)

Faster ways can be crafted with careful find/xargs/rm usage, like for
instance:

	# cd /usr/ports
	# find . -type d | grep 'work$' | xargs rm -fr

but 'rm -fr' is a dangerous thing too use, and you should avoid
playing around with find and rm, if you 're not sure of what each
command you issue as root will do.

- Giorgos


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-newbies" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020108075150.GF50046>