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

cleaning up a system



i'd like to remove all files that debian didn't install, obviously
ignoring places like /home, /var, /tmp, /usr/local, /dev (any other
suggestions i have overlooked?)?

there's cruft, but it's too complicated and while i should configure it
in the long run, for now i have thought of something like the following,
which can run for a while. i took the output of a `find /` and deleted
all lines corresponding to inodes in the above special directories
(find has no exclude!!! wishlist!), and now i want to:

  while read i; do
    dpkg -S $i &> /dev/null || echo $i
  done < findlist > orphanfiles

and then further inspect orphanfiles and finally delete what i deem
appropriate.

any thoughts?

-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck
  
no cat has eight tails.
a cat has one tail more than no cat.
therefore, a cat has nine tails.

Attachment: pgpRFllhimDSe.pgp
Description: PGP signature


Reply to: