Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Filesystem cruft script: clean your system, save disk space!
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
dashnu
l33t
l33t


Joined: 21 Jul 2004
Posts: 703
Location: Casco Maine

PostPosted: Sun Aug 22, 2004 7:46 pm    Post subject: Reply with quote

also any one who installs postfix / mysql / imap / ssl mail servers may run into this:

Code:
/var/run/cgisock
/var/run/imapd-ssl.pid
/var/run/imapd-ssl.pid.lock
/var/run/imapd.pid
/var/run/imapd.pid.lock
/etc/courier-imap/authmysqlrc
/etc/openoffice/autoresponse-1.1.1.conf
/etc/postfix/cacert.pem
/etc/postfix/mysql-aliases.cf
/etc/postfix/mysql-relocated.cf
/etc/postfix/mysql-transport.cf
/etc/postfix/mysql-virtual-gid.cf
/etc/postfix/mysql-virtual-maps.cf
/etc/postfix/mysql-virtual-uid.cf
/etc/postfix/mysql-virtual.cf
/etc/postfix/newcert.pem
/etc/postfix/newreq.pem
/etc/postfix/prng_exch
/etc/ssl/misc/demoCA
/etc/ssl/misc/demoCA/cacert.pem
/etc/ssl/misc/demoCA/certs
/etc/ssl/misc/demoCA/crl
/etc/ssl/misc/demoCA/index.txt
/etc/ssl/misc/demoCA/index.txt.attr
/etc/ssl/misc/demoCA/index.txt.old
/etc/ssl/misc/demoCA/newcerts
/etc/ssl/misc/demoCA/newcerts/01.pem
/etc/ssl/misc/demoCA/private
/etc/ssl/misc/demoCA/private/cakey.pem
/etc/ssl/misc/demoCA/serial
/etc/ssl/misc/demoCA/serial.old
/etc/ssl/misc/new.cert.cert
/etc/ssl/misc/new.cert.csr
/etc/ssl/misc/new.cert.key
/etc/ssl/misc/newcert.pem
/etc/ssl/misc/newreq.pem
/etc/ssl/misc/privkey.pem


Mozilla Firfox flash plugin

Code:
/usr/lib/MozillaFirefox/components/flashplayer.xpt


Lots of issues with zope / plone / cmf
Most likley because the ebuild is broke. The ebuild of plone should emerge CMF and it does not it also Should copy the Formulator dir to /var/lib/zope/zope-2_6_4/Products/Formulator

Anyways.....

Code:
/var/lib/zope/zope-2_6_4/Products

and its sub-dirs....
Code:
CMFCalendar CMFCore CMFDefault CFMPlone CMFTopic DCWorkflow Forumulator


acually it wants to wipe out all of
Code:
/var/lib/zope


Hope this stuff helps because I really like the script It works out very well for me.
_________________
write quit bang
Back to top
View user's profile Send private message
asph
l33t
l33t


Joined: 25 Aug 2003
Posts: 737
Location: Barcelona, Spain

PostPosted: Mon Aug 23, 2004 7:23 am    Post subject: Reply with quote

is 0.0.12 last version (the download link at first post) available?
_________________
gentoo sex is updatedb; locate; talk; date; cd; strip; look; touch; finger; unzip; uptime; gawk; head; emerge --oneshot condom; mount; fsck; gasp; more; yes; yes; yes; more; umount; emerge -C condom; make clean; sleep
Back to top
View user's profile Send private message
ThomasL
n00b
n00b


Joined: 15 Oct 2003
Posts: 30
Location: Switzerland

PostPosted: Tue Aug 24, 2004 1:08 pm    Post subject: Reply with quote

great script!

Please add the following:

Code:
dev-db/postgresql: /var/lib/postgresql/data/*
net-misc/chrony: /etc/chrony/*


thanks
Back to top
View user's profile Send private message
eeknay
Guru
Guru


Joined: 07 Jul 2003
Posts: 402
Location: EndOfTheRainbow

PostPosted: Wed Aug 25, 2004 7:04 pm    Post subject: Reply with quote

uhm, i don't quite understand this. i do get a lot of output, but how do i get rid of all that stuff?
is there something else i should do before using this script?

EDIT
nevermind, i just read the wiki ;)
_________________
Linda: "The holiday season is time of celebration for most but it is also the time to remember the tragic suffering of the less fortunate."
Morbo: "Earthlings do not yet know the meaning of suffering."
Back to top
View user's profile Send private message
Blubbmon
Apprentice
Apprentice


Joined: 13 Feb 2004
Posts: 156
Location: Germany, Potsdam

PostPosted: Fri Sep 03, 2004 8:03 pm    Post subject: Reply with quote

Very nice script! :D

Please add the following false positives:
Quote:

/chroot
/chroot/dhcp
/chroot/dhcp/dev
/chroot/dhcp/dev/log
/chroot/dhcp/etc
/chroot/dhcp/etc/dhcp
/chroot/dhcp/etc/dhcp/dhclient-script.sample
/chroot/dhcp/etc/dhcp/dhclient.conf.sample
/chroot/dhcp/etc/dhcp/dhcpd.conf
/chroot/dhcp/etc/dhcp/dhcpd.conf.sample
/chroot/dhcp/var
/chroot/dhcp/var/lib
/chroot/dhcp/var/lib/dhcp
/chroot/dhcp/var/lib/dhcp/.keep
/chroot/dhcp/var/lib/dhcp/dhcpd.leases
/chroot/dhcp/var/run
/chroot/dhcp/var/run/dhcp
/chroot/dhcp/var/run/dhcp/dhcpd.pid
/chroot/dns
/chroot/dns/dev
/chroot/dns/dev/random
/chroot/dns/dev/zero
/chroot/dns/etc
/chroot/dns/etc/bind
/chroot/dns/etc/bind/named.conf
/chroot/dns/etc/bind/pri
/chroot/dns/etc/bind/rndc.key
/chroot/dns/etc/bind/sec
/chroot/dns/etc/localtime
/chroot/dns/var
/chroot/dns/var/bind
/chroot/dns/var/bind/named.ca
/chroot/dns/var/bind/pri
/chroot/dns/var/bind/root.cache
/chroot/dns/var/bind/sec
/chroot/dns/var/bind/sec/.keep
/chroot/dns/var/run
/chroot/dns/var/run/named


As you see i've installed a chrooted bind and dhcp. It's a config option in Gentoo for these both ebuilds.
Back to top
View user's profile Send private message
kamagurka
Veteran
Veteran


Joined: 25 Jan 2004
Posts: 1026
Location: /germany/munich

PostPosted: Mon Sep 06, 2004 9:20 am    Post subject: Reply with quote

1. IMHO /etc/init.d/local.start should be added to the list of protected files, as you are advised to use it for commands to be executed at startup by the commenting in /etc/init.d/local.

2. what's /lib/dev-state/?

3. cruft should not list /etc/zsh/zshrc

4. what's /usr/sbin/gcc-config?

5. what's /usr/lib32/?

6. /var/log/ntpd.log belongs to the ntp-daemon and should not show up

7. /var/log/webmin/ belongs to webming

8. i think /var/run/ppp0.pid belongs to rp-pppoe and should be left alone.
_________________
If you loved me, you'd all kill yourselves today.
--Spider Jerusalem, the Word
Back to top
View user's profile Send private message
soulwarrior
Guru
Guru


Joined: 21 Oct 2002
Posts: 331

PostPosted: Mon Sep 06, 2004 4:51 pm    Post subject: Reply with quote

ThomasL wrote:
Code:
dev-db/postgresql: /var/lib/postgresql/data/*



I do also have postgresql installed and to eliminate the false positives I have added the following lines:
Code:

...
# Packages which drop files or directories on more than one place go here,
# listed alphabetically by category/package.
has_version dev-db/postgresql \
        && PRUNE="${PRUNE}
        /var/lib/postgresql"
...

Is this the right way to do it?
Back to top
View user's profile Send private message
TJNII
l33t
l33t


Joined: 09 Nov 2003
Posts: 636
Location: for(;;);

PostPosted: Sat Sep 18, 2004 2:29 am    Post subject: Reply with quote

Distcc was flaged
As was /usr/bin/kill
Stuff in /usr/lib/nsbrowser/plugins/ prolly shouldn't be flagged
_________________
Maintaining documentation on upgrades is apparently not within the power of Gentoo
Beware when you emerge -u world!
Back to top
View user's profile Send private message
Devsforev
n00b
n00b


Joined: 06 Sep 2003
Posts: 17
Location: New York

PostPosted: Sun Sep 19, 2004 10:46 pm    Post subject: Reply with quote

Hey all. Thanks for an awesome script, i have already cleared a lot of cruft off my system.

However, I just ran it, and it flaged A LOT of stuff related to perl5. Can someone please check out the following link (it's WAY to much to post here) for a list of all the items that were flaged. Thanks again!

http://devsdomain.homelinux.com:8888/cruft-perl5

I guess i'm asking if it's OK to remove all of these files! I am currently running: dev-lang/perl-5.8.4-r1
Back to top
View user's profile Send private message
aethyr
Veteran
Veteran


Joined: 06 Apr 2003
Posts: 1085
Location: NYC

PostPosted: Sun Sep 19, 2004 11:58 pm    Post subject: Reply with quote

Devsforev wrote:
I guess i'm asking if it's OK to remove all of these files! I am currently running: dev-lang/perl-5.8.4-r1


I'd say yes, you probably have /usr/lib/perl5/site_perl/5.8.4/ with all the new perl stuff. However, don't take my word for it ;)

If you wanted to be cautious, you could always move the directories to a backup location and see if your system b0rks.
Back to top
View user's profile Send private message
KristyX
Apprentice
Apprentice


Joined: 18 Dec 2003
Posts: 206
Location: Malaysia

PostPosted: Tue Sep 21, 2004 2:37 am    Post subject: Reply with quote

That's exactly what I was wondering too. I'm using Perl 5.8.4 and was going to let the other (lower) perl versions be considered cruft until I did perl -V and got this:

Code:

kristy@kristy kristy $ perl -V
Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
...
Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under linux
  Compiled at Sep 17 2004 18:55:33
  @INC:
    /etc/perl
    /usr/lib/perl5/site_perl/5.8.4/i686-linux
    /usr/lib/perl5/site_perl/5.8.4
    /usr/lib/perl5/site_perl/5.8.3/i686-linux
    /usr/lib/perl5/site_perl/5.8.3
    /usr/lib/perl5/site_perl/5.8.2/i686-linux
    /usr/lib/perl5/site_perl/5.8.2
    /usr/lib/perl5/site_perl
    /usr/lib/perl5/vendor_perl/5.8.4/i686-linux
    /usr/lib/perl5/vendor_perl/5.8.4
    /usr/lib/perl5/vendor_perl/5.8.2/i686-linux
    /usr/lib/perl5/vendor_perl/5.8.2
    /usr/lib/perl5/vendor_perl
    /usr/lib/perl5/5.8.4/i686-linux
    /usr/lib/perl5/5.8.4
    /usr/local/lib/site_perl
    /usr/lib/perl5/site_perl/5.8.3/i686-linux
    /usr/lib/perl5/site_perl/5.8.3
    /usr/lib/perl5/site_perl/5.8.2/i686-linux
    /usr/lib/perl5/site_perl/5.8.2


That's when I took it off the cruft list until I get confirmation :)
Any one know if it's safe to remove?

Thanks,
Kristy
_________________
Knowledge is a process of piling up facts; wisdom lies in their simplification. [Martin Fischer]
Back to top
View user's profile Send private message
KristyX
Apprentice
Apprentice


Joined: 18 Dec 2003
Posts: 206
Location: Malaysia

PostPosted: Tue Sep 21, 2004 3:05 am    Post subject: Reply with quote

Okay, I first renamed the 5.8.2 and 5.8.3 directories to something else and rebooted the system to see if anything breaks but things acted normal and all so I added the directories to the cruft list and cleared them off.

So far, everything's a-okay :)

By the way, the cruft script listed /etc/java/j2re1.4.2_04 as cruft (I guess because it wasn't installed by Portage) so I removed it from the list.

~Kristy
_________________
Knowledge is a process of piling up facts; wisdom lies in their simplification. [Martin Fischer]
Back to top
View user's profile Send private message
Pseud
Apprentice
Apprentice


Joined: 19 Mar 2004
Posts: 273
Location: Bangalore, India

PostPosted: Fri Sep 24, 2004 4:26 pm    Post subject: Reply with quote

Can someone please give me the link to the most recent version of the cruft script?

Thanks
_________________
eschew obfuscation
Back to top
View user's profile Send private message
provicemo
Apprentice
Apprentice


Joined: 12 Dec 2003
Posts: 201
Location: Detroit, MI

PostPosted: Fri Sep 24, 2004 5:46 pm    Post subject: Reply with quote

Pseud wrote:
Can someone please give me the link to the most recent version of the cruft script?

Thanks

See the very first post
Back to top
View user's profile Send private message
mope
Apprentice
Apprentice


Joined: 23 Feb 2003
Posts: 206

PostPosted: Tue Sep 28, 2004 9:14 am    Post subject: Reply with quote

provicemo wrote:
Pseud wrote:
Can someone please give me the link to the most recent version of the cruft script?

Thanks

See the very first post


The latest script is nearly 6 months old?

Do we just add the false positives listed in the past month to it ourselves?

(obviously, I don't really know what I'm doing :))
Back to top
View user's profile Send private message
robfantini
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jan 2004
Posts: 106
Location: Boston, Massachusetts

PostPosted: Wed Sep 29, 2004 12:52 am    Post subject: cruft suggestion. a local exclude file. Reply with quote

Hello,
Is it possible to have the script use a local exclude file?

I run Gentoo on a few servers. This servers have many data and other directories which need to be excluded.

Using a seperate exclude file an admin could use updated cruft scripts without editing in local changes.


Thank you for the great work!
Back to top
View user's profile Send private message
sinisterdomestik
l33t
l33t


Joined: 28 Aug 2003
Posts: 683
Location: Texas

PostPosted: Thu Sep 30, 2004 10:57 am    Post subject: Reply with quote

eeknay wrote:
uhm, i don't quite understand this. i do get a lot of output, but how do i get rid of all that stuff?
is there something else i should do before using this script?

EDIT
nevermind, i just read the wiki ;)


wheres teh wiki page at??
_________________
Thou shalt NEVER speak of removing thine Linux
Back to top
View user's profile Send private message
hepta_sean
Apprentice
Apprentice


Joined: 27 Apr 2004
Posts: 246
Location: Berlin, Germany

PostPosted: Thu Sep 30, 2004 6:19 pm    Post subject: Reply with quote

mope wrote:
provicemo wrote:
Pseud wrote:
Can someone please give me the link to the most recent version of the cruft script?
See the very first post
The latest script is nearly 6 months old?
Do we just add the false positives listed in the past month to it ourselves?


No not really, the link is 6 months old. The last time Ed modified the target of the link was 29th of June IIRC, so 3 months now.

Ed is somehow gone, but you can alway post a link to your patches here. Then someone can create a cumulative patch with all issues adressed and at the same time provide an updated version.

I was planning to do that from the file lists in the posts but it has become a little too much work for my limited time ressources.

So we could all work together by modifying the script to get rid of our false positives and then posting the patch created by
Code:
diff -u cruft cruft-local > cruft-patch

or a link to this file.

These patches can easily be applied by:
Code:
patch cruft cruft-patch
Back to top
View user's profile Send private message
hepta_sean
Apprentice
Apprentice


Joined: 27 Apr 2004
Posts: 246
Location: Berlin, Germany

PostPosted: Thu Sep 30, 2004 6:42 pm    Post subject: Reply with quote

sinisterdomestik wrote:
wheres teh wiki page at??


http://gentoo-wiki.com/TIP_Clean_Up_Cruft
Back to top
View user's profile Send private message
mikkelhoegh
n00b
n00b


Joined: 27 Aug 2004
Posts: 71
Location: Herning, Denmark

PostPosted: Thu Sep 30, 2004 7:07 pm    Post subject: Reply with quote

Wouldn't it be an idea to filter /usr/share/grub/gdm/themes/* from the results - as any installed themes go there :)
_________________
freak n:
Slang: An eccentric or nonconformist person, especially a member of a counterculture.
Back to top
View user's profile Send private message
kootenaykid
n00b
n00b


Joined: 26 Sep 2004
Posts: 33
Location: Victoria, Canada

PostPosted: Fri Oct 01, 2004 10:32 pm    Post subject: Reply with quote

Ok I no this is my fault, but I figured I would run this cruft script to free up my dwindling space. I thought that it would be mostly safe so I didn't bother to check if I actually needed anything that it cleaned be fore just removing it all.

Anyway I seem to be hooped as it removed most of my libpython files. So now emerge is broken.

Is there an easy way to fix this?

I'm looking at figure out manual build for python rigth now. Is this the best approach?

I think I'll find extra HD space other ways next time. :)
Back to top
View user's profile Send private message
kootenaykid
n00b
n00b


Joined: 26 Sep 2004
Posts: 33
Location: Victoria, Canada

PostPosted: Fri Oct 01, 2004 11:19 pm    Post subject: Reply with quote

Well, still not too fond of this script, but Gentoo rocks! I thought a manual build of python was going to throw some curve balls. Nope, just download the source, extract, ./configure, make && make install prefex=usr and away we go.

I emerged python after just to be sure, but that was way too easy. :D :) :P
Back to top
View user's profile Send private message
sinisterdomestik
l33t
l33t


Joined: 28 Aug 2003
Posts: 683
Location: Texas

PostPosted: Sat Oct 02, 2004 2:36 am    Post subject: Reply with quote

so reading the last 2 posts, i would assume that its not smart to just run and delete everything huh. what about all the ._cfg0000 files, they dont look important, but i wouldnt wanna delete something i need. i suppose ill try my best and hope for the best

/me crosses fingers
_________________
Thou shalt NEVER speak of removing thine Linux
Back to top
View user's profile Send private message
mark
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2002
Posts: 119

PostPosted: Sat Oct 02, 2004 10:37 am    Post subject: Reply with quote

sinisterdomestik wrote:
so reading the last 2 posts, i would assume that its not smart to just run and delete everything huh. what about all the ._cfg0000 files, they dont look important, but i wouldnt wanna delete something i need. i suppose ill try my best and hope for the best

/me crosses fingers


You need to run etc-update to update your config files after emerges. I wouldnt recommend deleting those cfg files without running etc-update.

Mark
_________________
Regards

Mark
Back to top
View user's profile Send private message
sinisterdomestik
l33t
l33t


Joined: 28 Aug 2003
Posts: 683
Location: Texas

PostPosted: Sat Oct 02, 2004 10:51 am    Post subject: Reply with quote

i would LOVE to run etc-update, but the problem with that is, the last time i ran it, i fsked my entire box and couldnt restart it for weeks until i finally re-installed gentoo....soooooooooooooooooo im a little scared of etc-update to say the least. i need to read a manual on that one

/EDIT

i am doing this very carefully, but i AM doing etc-update after 2 years......whew. one question though, when your looking at the differences, is the new .cfg file the lines with the '-' or the '+'
_________________
Thou shalt NEVER speak of removing thine Linux
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
Page 8 of 10

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum