View Single Post
  #1   (View Single Post)  
Old 5th March 2011
Astyanax Astyanax is offline
Real Name: Eugene Zykov
New User
 
Join Date: Mar 2011
Location: Odessa, Ukraine
Posts: 2
Default TIP: How to clean NetBSD pkgsrc tree

Here is a faster way (faster then doing make clean) how to clean /usr/pkgsrc tree in NetBSD.
I assume, that pkgsrc tree is installed in /usr/pkgsrc.

To find all work directories, issue this command:
Code:
find /usr/pkgsrc/ -name "work" -print
To clean them all, issue this one:
Code:
find /usr/pkgsrc/ -name "work" -exec rm -rf {} \;
As a side effect, after each deletion, this command will print message like this:
"find: /usr/pkgsrc/emulators/uae/work: No such file or directory"
indicating that temp directory port has been vanished successfully.
Reply With Quote