Diff for /wikisrc/pkgsrc/how_to_clean_all_pkgsrc_work_directories.mdwn between versions 1.1 and 1.3

version 1.1, 2011/11/20 20:28:27 version 1.3, 2011/12/14 02:31:12
Line 8  If you want to clean the directories of  Line 8  If you want to clean the directories of 
   
 Either way, sometimes it is not possible or wanted to clean the working directories. You can clean them all using this one line shell command:  Either way, sometimes it is not possible or wanted to clean the working directories. You can clean them all using this one line shell command:
   
     # find /usr/pkgsrc -name work -exec rm -r {} \;      # find /usr/pkgsrc -name work -exec rm -r {} +
   
 or this one (it is a bit longer but works much faster in most cases):  or this one:
   
     # find /usr/pkgsrc -maxdepth 3 -mindepth 3 -name work -print0 | xargs -0 rm -r      # find /usr/pkgsrc -maxdepth 3 -mindepth 3 -name work -exec rm -r {} +
   
 You can also change the place where the work directories are created by setting WORKOBJDIR in /etc/mk.conf. However, the above command will still be useful, as symlinks to the actual work directory are created during the build process.  You can also change the place where the work directories are created by setting WORKOBJDIR in /etc/mk.conf.
   
 You can clean them using make clean in the parent directory, but this is not advised. It takes a very long time. Using pkgclean is another option.  You can clean them using make clean in the parent directory, but this is not advised. It takes a very long time. Using pkgclean is another option.
 #See also  #See also
   
 * [[pkgsrc/How to use pkgsrc]]  * [[pkgsrc/How to use pkgsrc]]
 * [[basics/rm]]  * [[basics/rm]]
 * [[bascis/find]]  * [[basics/find]]

Removed from v.1.1  
changed lines
  Added in v.1.3


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb