View previous topic :: View next topic |
Author |
Message |
dashnu l33t
Joined: 21 Jul 2004 Posts: 703 Location: Casco Maine
|
Posted: Sun Aug 22, 2004 7:46 pm Post subject: |
|
|
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
Hope this stuff helps because I really like the script It works out very well for me. _________________ write quit bang |
|
Back to top |
|
|
asph l33t
Joined: 25 Aug 2003 Posts: 741 Location: Barcelona, Spain
|
Posted: Mon Aug 23, 2004 7:23 am Post subject: |
|
|
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 |
|
|
ThomasL n00b
Joined: 15 Oct 2003 Posts: 30 Location: Switzerland
|
Posted: Tue Aug 24, 2004 1:08 pm Post subject: |
|
|
great script!
Please add the following:
Code: | dev-db/postgresql: /var/lib/postgresql/data/*
net-misc/chrony: /etc/chrony/* |
thanks |
|
Back to top |
|
|
eeknay Guru
Joined: 07 Jul 2003 Posts: 402 Location: EndOfTheRainbow
|
Posted: Wed Aug 25, 2004 7:04 pm Post subject: |
|
|
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 |
|
|
Blubbmon Apprentice
Joined: 13 Feb 2004 Posts: 156 Location: Germany, Potsdam
|
Posted: Fri Sep 03, 2004 8:03 pm Post subject: |
|
|
Very nice script!
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 |
|
|
kamagurka Veteran
Joined: 25 Jan 2004 Posts: 1026 Location: /germany/munich
|
Posted: Mon Sep 06, 2004 9:20 am Post subject: |
|
|
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 |
|
|
soulwarrior Guru
Joined: 21 Oct 2002 Posts: 331
|
Posted: Mon Sep 06, 2004 4:51 pm Post subject: |
|
|
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 |
|
|
TJNII l33t
Joined: 09 Nov 2003 Posts: 637 Location: for(;;);
|
|
Back to top |
|
|
Devsforev n00b
Joined: 06 Sep 2003 Posts: 17 Location: New York
|
Posted: Sun Sep 19, 2004 10:46 pm Post subject: |
|
|
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 |
|
|
aethyr Veteran
Joined: 06 Apr 2003 Posts: 1085 Location: NYC
|
Posted: Sun Sep 19, 2004 11:58 pm Post subject: |
|
|
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 |
|
|
KristyX Apprentice
Joined: 18 Dec 2003 Posts: 206 Location: Malaysia
|
Posted: Tue Sep 21, 2004 2:37 am Post subject: |
|
|
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 |
|
|
KristyX Apprentice
Joined: 18 Dec 2003 Posts: 206 Location: Malaysia
|
Posted: Tue Sep 21, 2004 3:05 am Post subject: |
|
|
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 |
|
|
Pseud Apprentice
Joined: 19 Mar 2004 Posts: 273 Location: Bangalore, India
|
Posted: Fri Sep 24, 2004 4:26 pm Post subject: |
|
|
Can someone please give me the link to the most recent version of the cruft script?
Thanks _________________ eschew obfuscation |
|
Back to top |
|
|
provicemo Apprentice
Joined: 12 Dec 2003 Posts: 201 Location: Detroit, MI
|
Posted: Fri Sep 24, 2004 5:46 pm Post subject: |
|
|
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 |
|
|
mope Apprentice
Joined: 23 Feb 2003 Posts: 206
|
Posted: Tue Sep 28, 2004 9:14 am Post subject: |
|
|
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 |
|
|
robfantini Tux's lil' helper
Joined: 10 Jan 2004 Posts: 106 Location: Boston, Massachusetts
|
Posted: Wed Sep 29, 2004 12:52 am Post subject: cruft suggestion. a local exclude file. |
|
|
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 |
|
|
sinisterdomestik l33t
Joined: 28 Aug 2003 Posts: 685 Location: Texas
|
Posted: Thu Sep 30, 2004 10:57 am Post subject: |
|
|
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 |
|
|
hepta_sean Apprentice
Joined: 27 Apr 2004 Posts: 246 Location: Berlin, Germany
|
Posted: Thu Sep 30, 2004 6:19 pm Post subject: |
|
|
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 |
|
|
hepta_sean Apprentice
Joined: 27 Apr 2004 Posts: 246 Location: Berlin, Germany
|
|
Back to top |
|
|
mikkelhoegh n00b
Joined: 27 Aug 2004 Posts: 71 Location: Herning, Denmark
|
Posted: Thu Sep 30, 2004 7:07 pm Post subject: |
|
|
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 |
|
|
kootenaykid n00b
Joined: 26 Sep 2004 Posts: 33 Location: Victoria, Canada
|
Posted: Fri Oct 01, 2004 10:32 pm Post subject: |
|
|
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 |
|
|
kootenaykid n00b
Joined: 26 Sep 2004 Posts: 33 Location: Victoria, Canada
|
Posted: Fri Oct 01, 2004 11:19 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
sinisterdomestik l33t
Joined: 28 Aug 2003 Posts: 685 Location: Texas
|
Posted: Sat Oct 02, 2004 2:36 am Post subject: |
|
|
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 |
|
|
mark Tux's lil' helper
Joined: 04 Jun 2002 Posts: 119
|
Posted: Sat Oct 02, 2004 10:37 am Post subject: |
|
|
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 |
|
|
sinisterdomestik l33t
Joined: 28 Aug 2003 Posts: 685 Location: Texas
|
Posted: Sat Oct 02, 2004 10:51 am Post subject: |
|
|
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 |
|
|
|