[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Finding unused packages



On Fri, 2002-04-19 at 17:46, Mike Dresser wrote:
> 
> 
> On 19 Apr 2002, Peter Whysall wrote:
> 
> > What we need to do is tell "find" to only find files that have
> > executable bits set, with the -perm switch - however, the following:
> >
> > find / -type f -atime +30 perm ugo+x | xargs dpkg -S | sort | uniq >
> > old.txt
> >
> > doesn't return anything. Can someone point out the staggering (yet quite
> > invisible to me) stupidity I'm undoubtedly committing?
> 
> how about:
> 
> find / -type f -atime +30 -perm +111 | xargs dpkg -S | sort | uniq >
> old.txt

Well, old.txt now contains the following:

peter:~ $ more old.txt 
fdflush: /bin/fdflush

Hmm. I wonder if that hasn't taken it from one extreme to the other... 

Will the nightly running of updatedb throw a spanner in the works?

Take care

Peter.
 
-- 
Peter Whysall
peter.whysall@ntlworld.moc
The TLD in my email address is sdrawkcab.
Debian GNU/Linux 3.0 sid -- kernel 2.4.18

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: