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
mhodak
Veteran
Veteran


Joined: 15 Nov 2003
Posts: 1218

PostPosted: Sat May 08, 2004 2:39 pm    Post subject: Reply with quote

I am getting this error:
Code:

# ./cruft
./cruft: line 729: syntax error near unexpected token `&&'
./cruft: line 729: `    && [[ -f "$package" ]] \'


Am I doing something wrong?
Back to top
View user's profile Send private message
holmis
n00b
n00b


Joined: 16 Mar 2003
Posts: 72
Location: Sweden

PostPosted: Sat May 08, 2004 3:49 pm    Post subject: Reply with quote

mhodak wrote:
I am getting this error:
Code:

# ./cruft
./cruft: line 729: syntax error near unexpected token `&&'
./cruft: line 729: `    && [[ -f "$package" ]] \'


Am I doing something wrong?


I get this too. Must be an err. Ohh,,, and i'm so bad at bash scripting. :(
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Sat May 08, 2004 6:29 pm    Post subject: Reply with quote

Thanks, fixed now. I put that in to fix a monodevelop bug, but got the syntax wrong. :oops:
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
djm
Arch/Herd Tester
Arch/Herd Tester


Joined: 12 Apr 2004
Posts: 690
Location: Wadham College, Oxford

PostPosted: Tue May 11, 2004 2:14 pm    Post subject: Reply with quote

It keeps coming up with
Code:
/etc/X11/Sessions/xfce4


This could be because I previsouly had xfce3 installed as well as xfce4 and then unmerged v3

Version 4 is definitely installed though, and is definitely needed (I deleted it just to check)

Any thoughts on that?
_________________
the forums.gentoo.org poster formally known as metal leper
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Tue May 11, 2004 3:21 pm    Post subject: Reply with quote

Well, I don't run Xfce so I'm happy to take your advice. Added.
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Tue May 11, 2004 4:22 pm    Post subject: Reply with quote

OK, release 0.0.8 "Accession, accession, accession".
Now with perl 5.8.4 perllocal.pod, reiser3 extended attributes, and most importantly i18nised for non-A-Z locales (ee_EE, that means you.)
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
windzor
n00b
n00b


Joined: 04 Apr 2004
Posts: 50

PostPosted: Fri May 14, 2004 6:08 pm    Post subject: Reply with quote

Just played a little with the script. I did find something and i cleaned that. But, there was something I found that I thing shouldn't be removed.

Yes i know something is backup, but i love backups :)

Code:
/etc/dnsdomainname~
/etc/env.d/90games
/etc/group~
/etc/hostname~
/etc/init.d/pppoe~
/etc/lilo.conf~
/etc/mail/aliases.db
/etc/make.conf~
/etc/modules.autoload.d/kernel-2.6~
/etc/modules.d/alsa~
/etc/nanorc
/etc/postfix/main.cf~
/etc/prelink.conf~
/etc/rc.conf~
/usr/X11R6/lib/libXvMCNVIDIA.a
/usr/X11R6/lib/libXvMCNVIDIA.so
/usr/X11R6/lib/libXvMCNVIDIA.so.1
/usr/X11R6/lib/libXvMCNVIDIA.so.1.0.5336
/usr/X11R6/lib/libXvMCNVIDIA_dynamic.so.1
/usr/X11R6/lib/modules/drivers/nvidia_drv.o
/usr/X11R6/lib/modules/extensions/libglx.so.1.0.5336
/usr/bin/i686-pc-linux-gnu-c++
/usr/bin/i686-pc-linux-gnu-g++
/usr/bin/i686-pc-linux-gnu-gcc
/usr/bin/nvidia-installer
/usr/lib/MozillaThunderbird/chrome/chrome.rdf
/usr/lib/MozillaThunderbird/chrome/overlayinfo
/usr/lib/MozillaThunderbird/chrome/overlayinfo/communicator
/usr/lib/MozillaThunderbird/chrome/overlayinfo/communicator/content
/usr/lib/MozillaThunderbird/chrome/overlayinfo/communicator/content/overlays.rdf
/usr/lib/MozillaThunderbird/chrome/overlayinfo/cookie
/usr/lib/MozillaThunderbird/chrome/overlayinfo/cookie/content
/usr/lib/MozillaThunderbird/chrome/overlayinfo/cookie/content/overlays.rdf
/usr/lib/MozillaThunderbird/chrome/overlayinfo/global
/usr/lib/MozillaThunderbird/chrome/overlayinfo/global/content
/usr/lib/MozillaThunderbird/chrome/overlayinfo/global/content/overlays.rdf
/usr/lib/MozillaThunderbird/chrome/overlayinfo/messenger
/usr/lib/MozillaThunderbird/chrome/overlayinfo/messenger/content
/usr/lib/MozillaThunderbird/chrome/overlayinfo/messenger/content/overlays.rdf
/usr/lib/MozillaThunderbird/chrome/overlayinfo/navigator
/usr/lib/MozillaThunderbird/chrome/overlayinfo/navigator/content
/usr/lib/MozillaThunderbird/chrome/overlayinfo/navigator/content/overlays.rdf
/usr/lib/MozillaThunderbird/components/compreg.dat
/usr/lib/MozillaThunderbird/components/xpti.dat
/usr/lib/libGL.so.1.0.5336
/usr/lib/libGLcore.so.1.0.5336
/usr/lib/python2.2
/usr/lib/python2.2/site-packages
/usr/lib/python2.2/site-packages/fchksum.so
/usr/lib/python2.2/site-packages/missingos.so
/usr/lib/python2.3/site-packages/libsvn
/usr/lib/python2.3/site-packages/libsvn/__init__.pyo
/usr/lib/python2.3/site-packages/libsvn/client.pyo
/usr/lib/python2.3/site-packages/libsvn/core.pyo
/usr/lib/python2.3/site-packages/libsvn/delta.pyo
/usr/lib/python2.3/site-packages/libsvn/fs.pyo
/usr/lib/python2.3/site-packages/libsvn/ra.pyo
/usr/lib/python2.3/site-packages/libsvn/repos.pyo
/usr/lib/python2.3/site-packages/libsvn/wc.pyo
/usr/lib/python2.3/site-packages/svn
/usr/lib/python2.3/site-packages/svn/__init__.pyo
/usr/lib/python2.3/site-packages/svn/client.pyo
/usr/lib/python2.3/site-packages/svn/core.pyo
/usr/lib/python2.3/site-packages/svn/delta.pyo
/usr/lib/python2.3/site-packages/svn/fs.pyo
/usr/lib/python2.3/site-packages/svn/ra.pyo
/usr/lib/python2.3/site-packages/svn/repos.pyo
/usr/lib/python2.3/site-packages/svn/util.pyo
/usr/lib/python2.3/site-packages/svn/wc.pyo
/usr/share/doc/NVIDIA_GLX-1.0
/usr/share/doc/NVIDIA_GLX-1.0/LICENSE
/usr/share/doc/NVIDIA_GLX-1.0/NVIDIA_Changelog
/usr/share/doc/NVIDIA_GLX-1.0/README
/usr/share/doc/NVIDIA_GLX-1.0/README.DE
/usr/share/doc/NVIDIA_GLX-1.0/XF86Config.sample
/usr/share/doc/NVIDIA_GLX-1.0/include
/usr/share/doc/NVIDIA_GLX-1.0/include/GL
/usr/share/doc/NVIDIA_GLX-1.0/include/GL/gl.h
/usr/share/doc/NVIDIA_GLX-1.0/include/GL/glext.h
/usr/share/doc/NVIDIA_GLX-1.0/include/GL/glx.h
/usr/share/doc/NVIDIA_GLX-1.0/include/GL/glxtokens.h
/usr/share/emacs/site-lisp/site-gentoo.el
/usr/share/kahakai/styles/Apefoo2
/usr/share/kahakai/styles/Apefoo2/Apefoo2.kastyle
/usr/share/kahakai/styles/Apefoo2/button-close-focus.png
/usr/share/kahakai/styles/Apefoo2/button-close-pressed.png
/usr/share/kahakai/styles/Apefoo2/button-close-unfocus.png
/usr/share/kahakai/styles/Apefoo2/button-empty.png
/usr/share/kahakai/styles/Apefoo2/button-maximize-focus.png
/usr/share/kahakai/styles/Apefoo2/button-maximize-pressed.png
/usr/share/kahakai/styles/Apefoo2/button-maximize-unfocus.png
/usr/share/kahakai/styles/Apefoo2/button-minimize-focus.png
/usr/share/kahakai/styles/Apefoo2/button-minimize-pressed.png
/usr/share/kahakai/styles/Apefoo2/button-minimize-unfocus.png
/usr/share/kahakai/styles/Apefoo2/closebutton-pressed.png
/usr/share/kahakai/styles/Apefoo2/grip-left-focus.png
/usr/share/kahakai/styles/Apefoo2/grip-right-focus.png
/usr/share/kahakai/styles/Apefoo2/handlebar-focus.png
/usr/share/kahakai/styles/Apefoo2/handlebar-unfocus.png
/usr/share/kahakai/styles/Apefoo2/leftedge-focus.png
/usr/share/kahakai/styles/Apefoo2/leftedge-unfocus.png
/usr/share/kahakai/styles/Apefoo2/rightedge-focus.png
/usr/share/kahakai/styles/Apefoo2/rightedge-unfocus.png
/usr/share/kahakai/styles/Apefoo2/titlebar-focus.png
/usr/share/kahakai/styles/Apefoo2/titlebar-unfocus.png
/usr/share/kahakai/styles/Aqua
/usr/share/kahakai/styles/Aqua/.xvpics
/usr/share/kahakai/styles/Aqua/.xvpics/button-unfocus2.png
/usr/share/kahakai/styles/Aqua/.xvpics/maxbutton.png
/usr/share/kahakai/styles/Aqua/.xvpics/menubutton.png
/usr/share/kahakai/styles/Aqua/Aqua.jpg
/usr/share/kahakai/styles/Aqua/Aqua.kastyle
/usr/share/kahakai/styles/Aqua/background.png
/usr/share/kahakai/styles/Aqua/button-unfocus.png
/usr/share/kahakai/styles/Aqua/button-unfocus2.png
/usr/share/kahakai/styles/Aqua/closebutton-pressed.png
/usr/share/kahakai/styles/Aqua/closebutton.png
/usr/share/kahakai/styles/Aqua/dockappholder.png
/usr/share/kahakai/styles/Aqua/grip.png
/usr/share/kahakai/styles/Aqua/handlebar.png
/usr/share/kahakai/styles/Aqua/leftedge.png
/usr/share/kahakai/styles/Aqua/maxbutton-pressed.png
/usr/share/kahakai/styles/Aqua/maxbutton.png
/usr/share/kahakai/styles/Aqua/menubutton-pressed.png
/usr/share/kahakai/styles/Aqua/menubutton.png
/usr/share/kahakai/styles/Aqua/menutitle.png
/usr/share/kahakai/styles/Aqua/rightedge.png
/usr/share/kahakai/styles/Aqua/shadebutton-unfocus.png
/usr/share/kahakai/styles/Aqua/shadebutton.png
/usr/share/kahakai/styles/Aqua/shadebutton2-unfocus.png
/usr/share/kahakai/styles/Aqua/shadebutton2.png
/usr/share/kahakai/styles/Aqua/titlebar.png
/usr/share/kahakai/styles/Aqua/unfocusedtitlebar.png
/usr/share/man/man1/xsetbg.1.gz
/usr/share/man/man1/xview.1.gz
/usr/share/man/man5/lilo.conf.5
/usr/share/man/man8/lilo.8
/usr/share/man/man8/mkrescue.8
/var/lib/nvidia
/var/lib/nvidia/100
/var/lib/nvidia/101
/var/lib/nvidia/102
/var/lib/nvidia/103
/var/lib/nvidia/104
/var/lib/nvidia/105
/var/lib/nvidia/106
/var/lib/nvidia/log
/var/lib/scrollkeeper
/var/lib/scrollkeeper/C
/var/lib/scrollkeeper/am
/var/lib/scrollkeeper/az
/var/lib/scrollkeeper/be
/var/lib/scrollkeeper/ca
/var/lib/scrollkeeper/cs
/var/lib/scrollkeeper/da
/var/lib/scrollkeeper/de
/var/lib/scrollkeeper/el
/var/lib/scrollkeeper/es
/var/lib/scrollkeeper/fr
/var/lib/scrollkeeper/hu
/var/lib/scrollkeeper/it
/var/lib/scrollkeeper/ja
/var/lib/scrollkeeper/kn
/var/lib/scrollkeeper/ko
/var/lib/scrollkeeper/nl
/var/lib/scrollkeeper/no
/var/lib/scrollkeeper/pl
/var/lib/scrollkeeper/pt_BR
/var/lib/scrollkeeper/ro
/var/lib/scrollkeeper/ru
/var/lib/scrollkeeper/scrollkeeper_docs
/var/lib/scrollkeeper/sk
/var/lib/scrollkeeper/sl
/var/lib/scrollkeeper/sr
/var/lib/scrollkeeper/sr@Latn
/var/lib/scrollkeeper/sv
/var/lib/scrollkeeper/tr
/var/lib/scrollkeeper/uk
/var/lib/scrollkeeper/vi
/var/lib/scrollkeeper/zh_CN
/var/lib/scrollkeeper/zh_TW
/var/run/cron.pid
/var/run/ppp0.pid
/var/run/pppd.tdb
/var/run/pppoe.conf-adsl.pid
/var/run/pppoe.conf-adsl.pid.pppd
/var/run/pppoe.conf-adsl.pid.pppoe
/var/run/pppoe.conf-adsl.pid.start
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Fri May 14, 2004 7:16 pm    Post subject: Reply with quote

OK... anything ending ~ is junk. You want backups, you keep them somewhere else.

nvidia stuff: use the nvidia-glx ebuild.

kahakai themes: put them in /usr/local or write an ebuild.

man pages: nuke them.

/etc/env.d/90games - is this yours?

/etc/nanorc - unmerging nano isn't the smartest, but if you wanted to, get rid of config files as well...

/var/lib/scrollkeeper should belong to scrollkeeper - is it installed?

/usr/bin/i686-pc-linux-gnu-* should belong to gcc-config - is it installed?

python 2.2: if you don't have it, nuke it.

python 2.3 svn stuff - are python 2.3 and svn installed?
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Fri May 14, 2004 8:14 pm    Post subject: Reply with quote

/etc/mail/aliases.db - which MTA are you using?

/usr/lib/MozillaThunderbird/chrome etc. - OK, added.

/usr/share/emacs/site-lisp/site-gentoo.el - no idea. Run cruft-blame.py on it and see what pops out.

/var/run/cron.pid - what cron are you using and is it running? Have you changed cron?

ppp, pppoe: done, I hope :D
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
windzor
n00b
n00b


Joined: 04 Apr 2004
Posts: 50

PostPosted: Fri May 14, 2004 8:30 pm    Post subject: Reply with quote

ecatmur >> both scroolkeeper and gcc-config is installed. Am using postfix (only mailthing i have install other then tb) and using vixie-cron.

Got some of the other things cleaned up.

The nvidia thing is a shitty fix to my mm-sources not using the nonmasked nvidia driver in portage but with the .run script from their site. Think theres a fix to it somewhere but haven't got the time to fix it (see mummy i can make a good excuse :) ).
Back to top
View user's profile Send private message
Mige89
n00b
n00b


Joined: 19 Nov 2003
Posts: 32

PostPosted: Sat May 15, 2004 7:29 am    Post subject: Reply with quote

the script told me that i didnt need /var/log/apache2. but without the files apache didnt start.
i fixed it now, but maybe the script shall leave /var/log/apache2 alone?
Back to top
View user's profile Send private message
stahlsau
Guru
Guru


Joined: 09 Jan 2004
Posts: 584
Location: WildWestwoods

PostPosted: Sat May 15, 2004 8:28 am    Post subject: Reply with quote

yes, the gcc-config-files are listed here too. I decided to burn them to see if it does harm, and well, it does ;-)
But fortunely (<=is this right?) nothing what the gcc-binaries couldn´t fix.
Would be nice if you could remove these directories from your script or s/t ;-)
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Sat May 15, 2004 1:42 pm    Post subject: Reply with quote

OK... apache2 is now somewhat handled (I haven't got it installed so I'm working from the build).

Scrollkeeper and gcc-config - well, I don't have those listed but whatever, it can't hurt to add them in.

Only other thing is that cron.pid; hmm...
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Sat May 15, 2004 1:44 pm    Post subject: Reply with quote

About that cron.pid: it ought to get automagically picked up. Is vixie-cron in /var/lib/init.d/started/ and does sed ':a;/\\$/N;s/\\\n//;ta;s/^.*start-stop-daemon.*\(\<-p\|--pidfile\>\|\<-m\|--make-pidfile\>\)\s*\(\/\S\+\).*$/\2/;tb;s/^.*pidfile=\(\/\S\+\).*$/\1/;tb;d;:b;s/\s\+/\n/g' /var/lib/init.d/started/*
give you cron.pid?
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
Jarhead
Guru
Guru


Joined: 26 Mar 2004
Posts: 474

PostPosted: Sat May 15, 2004 8:19 pm    Post subject: Reply with quote

I like what I see... However, reading through the previous 2 pages of this post, I didn't catch how to remove the cruft. Is that something I remove manually, or is there a way to make the script do it?
_________________
Hats off to everyone in leadership, developmental, or administrative capacities for Gentoo Linux. Your hard work is very much appreciated.
Back to top
View user's profile Send private message
BlindSpy
Apprentice
Apprentice


Joined: 20 Mar 2004
Posts: 263

PostPosted: Sun May 16, 2004 12:13 am    Post subject: Reply with quote

I was just wondering the same thing. Maybe they could each get a number and you could give it intervules like ./cruft -d 1-5,20-40,45-50 and it would delete all those?
Back to top
View user's profile Send private message
BlindSpy
Apprentice
Apprentice


Joined: 20 Mar 2004
Posts: 263

PostPosted: Sun May 16, 2004 1:40 am    Post subject: Reply with quote

Great script! i cleaned out .4 gig by just running it. I'm pretty new to programming in C for linux but I may try to write something to delete them automatically... May be a while before I get that kinda still though. Here's all the files i kept:

Code:
/bin/ipodmount <=mine
/bin/ipodumount <=mine
/etc/apache2/extramodules
/etc/apache2/lib
/etc/apache2/logs
/etc/apache2/modules
/etc/bootsplash/default
/etc/bootsplash/gentoo/images/.directory
/etc/env.d/90games
/etc/fonts/Fontmap
/etc/foomatic/cups
/etc/ftpusers
/etc/http <=mine
/etc/http/forum <=mine
/etc/http/index.php <=mine
/etc/http/phpmyadmin <=mine
/etc/skel/.pypanelrc <=mine
/etc/skel/.xinitrc <=mine
/etc/vsftpd/vsftpd.conf
/usr/X11R6/include/GL/glxATI.h
/usr/X11R6/lib/X11/fonts/100dpi/Fontmap
/usr/X11R6/lib/X11/fonts/75dpi/Fontmap
/usr/X11R6/lib/X11/fonts/Fontmap
/usr/X11R6/lib/X11/fonts/Speedo/Fontmap
/usr/X11R6/lib/X11/fonts/TTF/Fontmap
/usr/X11R6/lib/X11/fonts/Type1/Fontmap
/usr/X11R6/lib/X11/fonts/cyrillic/Fontmap
/usr/X11R6/lib/X11/fonts/encodings.dir
/usr/X11R6/lib/X11/fonts/fonts.cache-1
/usr/X11R6/lib/X11/fonts/fonts.dir
/usr/X11R6/lib/X11/fonts/local/Fontmap
/usr/X11R6/lib/X11/fonts/misc/Fontmap
/usr/X11R6/lib/X11/fonts/truetype/Fontmap
/usr/X11R6/lib/X11/fonts/ukr/Fontmap
/usr/X11R6/lib/libfglrx_gamma.1
/usr/X11R6/lib/libfglrx_gamma.so.1
/usr/lib/MozillaFirefox/chrome/allinonegest.jar
/usr/lib/MozillaFirefox/chrome/preferential.jar
/usr/lib/MozillaFirefox/chrome/tabextensions.jar
/usr/lib/MozillaFirefox/install.log
/usr/lib/MozillaFirefox/searchplugins/dictionary.png
/usr/lib/MozillaFirefox/searchplugins/dictionary.src
/usr/lib/MozillaFirefox/searchplugins/googleLinux.gif
/usr/lib/MozillaFirefox/searchplugins/googleLinux.src
/usr/lib/ccache
/usr/lib/ccache/bin
/usr/lib/ccache/bin/c++
/usr/lib/ccache/bin/cc
/usr/lib/ccache/bin/g++
/usr/lib/ccache/bin/gcc
/usr/lib/ccache/bin/i686-pc-linux-gnu-c++
/usr/lib/ccache/bin/i686-pc-linux-gnu-g++
/usr/lib/ccache/bin/i686-pc-linux-gnu-gcc
/usr/lib/libdb-1.so
/usr/lib/python2.2/site-packages/fchksum.so
/usr/libexec/usermin/admin.acl
/usr/libexec/usermin/at/admin.acl
/usr/libexec/usermin/at/config
/usr/libexec/usermin/changepass/admin.acl
/usr/libexec/usermin/chfn/admin.acl
/usr/libexec/usermin/commands/admin.acl
/usr/libexec/usermin/config
/usr/libexec/usermin/cron/admin.acl
/usr/libexec/usermin/cron/config
/usr/libexec/usermin/cshrc/admin.acl
/usr/libexec/usermin/cshrc/config
/usr/libexec/usermin/fetchmail/admin.acl
/usr/libexec/usermin/file/admin.acl
/usr/libexec/usermin/forward/admin.acl
/usr/libexec/usermin/gnupg/admin.acl
/usr/libexec/usermin/htaccess/admin.acl
/usr/libexec/usermin/language/admin.acl
/usr/libexec/usermin/language/config
/usr/libexec/usermin/mailbox/admin.acl
/usr/libexec/usermin/mailbox/config
/usr/libexec/usermin/man/admin.acl
/usr/libexec/usermin/man/config
/usr/libexec/usermin/miniserv.conf
/usr/libexec/usermin/miniserv.users
/usr/libexec/usermin/mysql/admin.acl
/usr/libexec/usermin/perl-path
/usr/libexec/usermin/plan/admin.acl
/usr/libexec/usermin/plan/config
/usr/libexec/usermin/postgresql/admin.acl
/usr/libexec/usermin/proc/admin.acl
/usr/libexec/usermin/proc/config
/usr/libexec/usermin/procmail/admin.acl
/usr/libexec/usermin/procmail/config
/usr/libexec/usermin/quota/admin.acl
/usr/libexec/usermin/quota/config
/usr/libexec/usermin/shell/admin.acl
/usr/libexec/usermin/shell/config
/usr/libexec/usermin/spam/admin.acl
/usr/libexec/usermin/ssh/admin.acl
/usr/libexec/usermin/ssh/config
/usr/libexec/usermin/start
/usr/libexec/usermin/stop
/usr/libexec/usermin/telnet/admin.acl
/usr/libexec/usermin/theme/admin.acl
/usr/libexec/usermin/theme/config
/usr/libexec/usermin/tunnel/admin.acl
/usr/libexec/usermin/uninstall.sh
/usr/libexec/usermin/updown/admin.acl
/usr/libexec/usermin/usermount/admin.acl
/usr/libexec/usermin/var-path
/usr/libexec/usermin/webmin.acl
/usr/share/bootsplash/initrd-1024x768
/usr/share/bootsplash/initrd-1280x1024
/usr/share/bootsplash/initrd-1600x1200
/usr/share/bootsplash/initrd-800x600
/usr/share/bootsplash/initrd-gentoo-1024x768
/usr/share/bootsplash/initrd-gentoo-1280x1024
/usr/share/bootsplash/initrd-gentoo-1600x1200
/usr/share/bootsplash/initrd-gentoo-800x600
/usr/share/bootsplash/initrd-livecd-2004.0-1024x768
/usr/share/bootsplash/initrd-livecd-2004.0-1280x1024

/usr/share/bootsplash/initrd-livecd-2004.0-1600x1200
/usr/share/bootsplash/initrd-livecd-2004.0-800x600
/usr/share/bootsplash/initrd-livecd-2004.1-1024x768
/usr/share/bootsplash/initrd-livecd-2004.1-1280x1024
/usr/share/bootsplash/initrd-livecd-2004.1-1600x1200
/usr/share/bootsplash/initrd-livecd-2004.1-800x600
/usr/share/vsftpd
/usr/share/vsftpd/empty
/var/usermin
/var/usermin/miniserv.error
/var/usermin/miniserv.log
/var/usermin/miniserv.pid
/var/usermin/sessiondb.dir
/var/usermin/sessiondb.pag


I do have apache, bootsplash, foomatic, vsftpd, firefox, and usermin installed so i dont know if I need these things for them to work or if they just need to be added but the apache stuff im sure needs to stay.
Back to top
View user's profile Send private message
djm
Arch/Herd Tester
Arch/Herd Tester


Joined: 12 Apr 2004
Posts: 690
Location: Wadham College, Oxford

PostPosted: Sun May 16, 2004 3:02 pm    Post subject: Reply with quote

What I do is (more or less):

Code:
~/cruft > ~/.cruft
cat ~/.cruft
vim ~.cruft (remove anything you want to keep at this point)
rm -r `cat ~/.cruft`



You could always make a script to do this, and use rm -ir so that it asks you before moving each file
_________________
the forums.gentoo.org poster formally known as metal leper
Back to top
View user's profile Send private message
image
n00b
n00b


Joined: 03 Apr 2004
Posts: 17

PostPosted: Sun May 16, 2004 7:28 pm    Post subject: Reply with quote

is it possible to exclude /var/vpopmail and /var/qmail if the ebuilds are installed?
Back to top
View user's profile Send private message
BlindSpy
Apprentice
Apprentice


Joined: 20 Mar 2004
Posts: 263

PostPosted: Sun May 16, 2004 7:58 pm    Post subject: Reply with quote

metal leper wrote:
What I do is (more or less):

Code:
~/cruft > ~/.cruft
cat ~/.cruft
vim ~.cruft (remove anything you want to keep at this point)
rm -r `cat ~/.cruft`



You could always make a script to do this, and use rm -ir so that it asks you before moving each file


I'm gunna have to look into that - that looks like a good idea! thanks a lot metal
Back to top
View user's profile Send private message
stahlsau
Guru
Guru


Joined: 09 Jan 2004
Posts: 584
Location: WildWestwoods

PostPosted: Mon May 17, 2004 5:59 am    Post subject: Reply with quote

that´s the way i tried, but bash said s/t like argument too long...so i had to split the cruft-list into a few parts - well, was a lot of stuff to burn ;-)
Back to top
View user's profile Send private message
gnac
Guru
Guru


Joined: 30 Jun 2003
Posts: 302
Location: Columbia River Gorge

PostPosted: Tue May 18, 2004 8:57 pm    Post subject: Reply with quote

I just downloaded the latest version of this script, but I'm not sure if I fully understand its operation.

When I run it I get the portagefiles(15M) and allfiles(8M) in /tmp. But reading the files I find numerous files that I would assume are needed system files, and if not, many that I'm sure I do not want to delete:

portagefile sample:
Code:
bash # more /tmp/portagefiles
/
/bin
/bin/[
/bin/arch
/bin/awk
/bin/basename
/bin/bash
/bin/bunzip2
/bin/bzcat
/bin/bzcmp
/bin/bzdiff
/bin/bzegrep
/bin/bzfgrep
/bin/bzgrep
/bin/bzip2
/bin/bzip2recover
/bin/bzless
/bin/bzmore
/bin/cat
/bin/chattr
/bin/chgrp
/bin/chmod
/bin/chown
--More--(0%)

root@valhalla dwh # more /tmp/allfiles
/
/bin
/bin/[
/bin/arch
/bin/awk
/bin/basename
/bin/bash
/bin/bunzip2
/bin/bzcat
/bin/bzcmp
/bin/bzdiff
/bin/bzegrep
/bin/bzfgrep
/bin/bzgrep
/bin/bzip2
/bin/bzip2recover
/bin/bzless
/bin/bzmore
/bin/cat
/bin/chattr
/bin/chgrp
/bin/chmod
/bin/chown
--More--(0%)


There are many more files that I know I do not want to delete, but I think these snippets give you the idea. I have posted zipped tarballs of these files to [EDIT:]I've deleted these files since I was mistaken in their purpose. Read Ecatmur's response below[/EDIT]. You can ignore any reference to files in the /share directories. They reference an old windows partition.


I was under the assumption that files listed in these two files were okay to delete, but looking at the output I assume that this assumption is incorrect.

Any thoughts?
_________________
"I thought she'd steal my heart, instead she stole my kidney,
and now its for sale, on the black market in Sydney" - Better Abraham


Last edited by gnac on Tue May 25, 2004 9:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Thu May 20, 2004 6:41 am    Post subject: Reply with quote

BlindSpy wrote:
Great script! i cleaned out .4 gig by just running it. I'm pretty new to programming in C for linux but I may try to write something to delete them automatically... May be a while before I get that kinda still though. Here's all the files i kept:

Code:
/bin/ipodmount <=mine
/bin/ipodumount <=mine
/etc/apache2/extramodules
/etc/apache2/lib
/etc/apache2/logs
/etc/apache2/modules
/etc/bootsplash/default
/etc/bootsplash/gentoo/images/.directory
/etc/env.d/90games
/etc/fonts/Fontmap


Thanks. Do be aware you can move stuff to e.g. /usr/local/bin and it won't be picked up.
The latest version should get rid of most of the false positives you listed.

_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Thu May 20, 2004 6:45 am    Post subject: Reply with quote

stahlsau wrote:
that´s the way i tried, but bash said s/t like argument too long...so i had to split the cruft-list into a few parts - well, was a lot of stuff to burn ;-)
You could use:
Code:
cat cruft-list | xargs rm

No way though am I going to give my script the ability to actually delete things. Not until version 0.4 at least anyway.
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Thu May 20, 2004 6:47 am    Post subject: Reply with quote

image wrote:
is it possible to exclude /var/vpopmail and /var/qmail if the ebuilds are installed?
Of course; I'll add those rules. Thanks.
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
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 3 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