Cleaning Ports Tree
    Dewayne Geraghty 
    dewayne at heuristicsystems.com.au
       
    Thu Apr 15 21:08:21 UTC 2021
    
    
  
On 16/04/2021 6:37 am, Tim Daneliuk via freebsd-questions wrote:
> I am aware that one can do this to clean the ports tree:
> 
>   cd /usr/ports
>   make clean
> 
> However, this is very slow.  Is there any reason not to do this instead:
> 
>   find  /usr/ports -type d -name work -exec -vrf {} \;
> 
> This second approach is much, much (much) faster, I just want to make
> sure I am not creating nasty side-effects thereby.
> 
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
> 
I've done a similar thing since 2003 without ill effects.  For
completeness I also have (in make.conf):
WRKDIRPREFIX=/var/ports # when I perform a rebuild, I simply delete the
subdirs
DISTDIR=/distfiles # so all the distfiles are in one place
PACKAGES=/packages # same for the outputs.
It also allows the use of multiple devices.
    
    
More information about the freebsd-questions
mailing list