rough method of cleaning the ports tree

Dominic Fandrey LoN_Kamikaze at gmx.de
Wed Dec 19 09:34:22 PST 2007


Erich Dollansky wrote:
> Hi,
> 
> after noticing how large my ports tree grows while compiling, I thought
> of simply deleting it and do a CVSup to get a new one after the
> compilation is finished.
> 
> This should be much faster and also should do some kind o
> defragmentation. I simply cannot believe that the huge ports tree will
> still be very well organised after some months.
> 
> What does the list think of this method?
> 
> Erich

It's a good start, but to keep it clean you should set WRKDIRPREFIX=/usr/obj
or something similar in your make.conf. This way you can just wipe /usr/obj
when uncleaned builds fill up too much disk space.


More information about the freebsd-ports mailing list