--- wikisrc/pkgsrc/how_to_clean_all_pkgsrc_work_directories.mdwn 2011/12/14 02:26:43 1.2 +++ wikisrc/pkgsrc/how_to_clean_all_pkgsrc_work_directories.mdwn 2011/12/14 02:31:12 1.3 @@ -8,11 +8,11 @@ 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: - # 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. @@ -21,4 +21,4 @@ You can clean them using make clean in t * [[pkgsrc/How to use pkgsrc]] * [[basics/rm]] -* [[bascis/find]] +* [[basics/find]]