Re: cleaning up a system

2002-01-21 Thread Joel Mayes
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 martin == martin f krafft [EMAIL PROTECTED] writes:

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

look at  -prune I use

find $HOME -path '*/log' -prune -o \( -name '*.log' SNIP \) 
- -exec rm -Rv '{}' ';'

to delete a whole heap of unneeded files (TeX's .log .aux etc) without
touching the files in ~/log find also has a -not 

I use dpkg --list |grep -v ^ii to find old packages that haven't
been purged, which isn't to many if you update with apt-get --purge
dist-upgrade consistently.

Cheers

Joel

- -- 
Go ahead try and spam me ...
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 http://mailcrypt.sourceforge.net/

iD8DBQE8S8bqFgrYE4V82aYRAir2AJ9qrmp7emRoIBZZeJ6u46U19X7IPgCeMeyT
AKYwaVXtnz/0r+bcuSiLL4s=
=6D6U
-END PGP SIGNATURE-



cleaning up a system

2002-01-20 Thread martin f krafft
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:; [EMAIL PROTECTED]
  
no cat has eight tails.
a cat has one tail more than no cat.
therefore, a cat has nine tails.


pgpzIMEWHtzMh.pgp
Description: PGP signature


Re: cleaning up a system

2002-01-20 Thread Brian Nelson
martin f krafft [EMAIL PROTECTED] writes:

 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:
   

Sure it does:

find / | egrep -v /home|/var|/tmp|/usr/local|/dev

;)

-- 
Brian Nelson [EMAIL PROTECTED]



Re: cleaning up a system

2002-01-20 Thread Colin Watson
On Sun, Jan 20, 2002 at 02:57:32PM +0100, martin f krafft wrote:
 i took the output of a `find /` and deleted all lines corresponding to
 inodes in the above special directories (find has no exclude!!!
 wishlist!),

Sure it does. Use something like 'find path condition -o -print'.

-- 
Colin Watson  [EMAIL PROTECTED]