The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 RE: Cleaning junk out of /usr/local
Author: Philip 
Date:   13-09-00 18:09

That's pretty cool...

You might want to add "-o -type l" to your find command too so that you catch things like /usr/local/bin/ssh which is a symlink...

I don't know if this if more efficient or not, but it avoids the loop... but then you're sorting a potentially humongous file... anyone know which is better?

( pkg_info -aL | grep "^/usr/local/" ; find /usr/local/ -type f -o -type l ) | sort | uniq -u

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 Cleaning junk out of /usr/local   new
Justin Hawkins 08-09-00 15:18 
 RE: Cleaning junk out of /usr/local   new
Don Brearley 10-09-00 09:08 
 RE: Cleaning junk out of /usr/local   new
Philip 13-09-00 18:09 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org