Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

Filesystem cruft script: clean your system, save disk space!

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
243 posts
  • Page 3 of 10
    • Jump to page:
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 10
  • Next
Author
Message
mhodak
Veteran
Veteran
Posts: 1218
Joined: Sat Nov 15, 2003 9:23 am

  • Quote

Post by mhodak » Sat May 08, 2004 2:39 pm

I am getting this error:

Code: Select all

# ./cruft 
./cruft: line 729: syntax error near unexpected token `&&'
./cruft: line 729: `    && [[ -f "$package" ]] \'
Am I doing something wrong?
Top
holmis
n00b
n00b
User avatar
Posts: 72
Joined: Sun Mar 16, 2003 11:18 pm
Location: Sweden

  • Quote

Post by holmis » Sat May 08, 2004 3:49 pm

mhodak wrote:I am getting this error:

Code: Select all

# ./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. :(
Top
ecatmur
Advocate
Advocate
User avatar
Posts: 3595
Joined: Mon Oct 20, 2003 8:07 pm
Location: Edinburgh
Contact:
Contact ecatmur
Website

  • Quote

Post by ecatmur » Sat May 08, 2004 6:29 pm

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?
Top
djm
Arch/Herd Tester
Arch/Herd Tester
User avatar
Posts: 690
Joined: Mon Apr 12, 2004 1:00 pm
Location: Wadham College, Oxford

  • Quote

Post by djm » Tue May 11, 2004 2:14 pm

It keeps coming up with

Code: Select all

/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
Top
ecatmur
Advocate
Advocate
User avatar
Posts: 3595
Joined: Mon Oct 20, 2003 8:07 pm
Location: Edinburgh
Contact:
Contact ecatmur
Website

  • Quote

Post by ecatmur » Tue May 11, 2004 3:21 pm

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?
Top
ecatmur
Advocate
Advocate
User avatar
Posts: 3595
Joined: Mon Oct 20, 2003 8:07 pm
Location: Edinburgh
Contact:
Contact ecatmur
Website

  • Quote

Post by ecatmur » Tue May 11, 2004 4:22 pm

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?
Top
windzor
n00b
n00b
Posts: 50
Joined: Sun Apr 04, 2004 4:12 pm

  • Quote

Post by windzor » Fri May 14, 2004 6:08 pm

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: Select all

/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 
Top
ecatmur
Advocate
Advocate
User avatar
Posts: 3595
Joined: Mon Oct 20, 2003 8:07 pm
Location: Edinburgh
Contact:
Contact ecatmur
Website

  • Quote

Post by ecatmur » Fri May 14, 2004 7:16 pm

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?
Top
ecatmur
Advocate
Advocate
User avatar
Posts: 3595
Joined: Mon Oct 20, 2003 8:07 pm
Location: Edinburgh
Contact:
Contact ecatmur
Website

  • Quote

Post by ecatmur » Fri May 14, 2004 8:14 pm

/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?
Top
windzor
n00b
n00b
Posts: 50
Joined: Sun Apr 04, 2004 4:12 pm

  • Quote

Post by windzor » Fri May 14, 2004 8:30 pm

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 :) ).
Top
Mige89
n00b
n00b
Posts: 32
Joined: Wed Nov 19, 2003 9:35 pm

  • Quote

Post by Mige89 » Sat May 15, 2004 7:29 am

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?
Top
stahlsau
Guru
Guru
User avatar
Posts: 584
Joined: Fri Jan 09, 2004 8:16 am
Location: WildWestwoods

  • Quote

Post by stahlsau » Sat May 15, 2004 8:28 am

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 ;-)
Top
ecatmur
Advocate
Advocate
User avatar
Posts: 3595
Joined: Mon Oct 20, 2003 8:07 pm
Location: Edinburgh
Contact:
Contact ecatmur
Website

  • Quote

Post by ecatmur » Sat May 15, 2004 1:42 pm

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?
Top
ecatmur
Advocate
Advocate
User avatar
Posts: 3595
Joined: Mon Oct 20, 2003 8:07 pm
Location: Edinburgh
Contact:
Contact ecatmur
Website

  • Quote

Post by ecatmur » Sat May 15, 2004 1:44 pm

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?
Top
Jarhead
Guru
Guru
User avatar
Posts: 474
Joined: Fri Mar 26, 2004 4:21 pm

  • Quote

Post by Jarhead » Sat May 15, 2004 8:19 pm

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.
Top
BlindSpy
Apprentice
Apprentice
User avatar
Posts: 263
Joined: Sat Mar 20, 2004 4:17 pm

  • Quote

Post by BlindSpy » Sun May 16, 2004 12:13 am

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?
Top
BlindSpy
Apprentice
Apprentice
User avatar
Posts: 263
Joined: Sat Mar 20, 2004 4:17 pm

  • Quote

Post by BlindSpy » Sun May 16, 2004 1:40 am

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: Select all

/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.
Top
djm
Arch/Herd Tester
Arch/Herd Tester
User avatar
Posts: 690
Joined: Mon Apr 12, 2004 1:00 pm
Location: Wadham College, Oxford

  • Quote

Post by djm » Sun May 16, 2004 3:02 pm

What I do is (more or less):

Code: Select all

~/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
Top
image
n00b
n00b
Posts: 17
Joined: Sat Apr 03, 2004 6:01 pm

  • Quote

Post by image » Sun May 16, 2004 7:28 pm

is it possible to exclude /var/vpopmail and /var/qmail if the ebuilds are installed?
Top
BlindSpy
Apprentice
Apprentice
User avatar
Posts: 263
Joined: Sat Mar 20, 2004 4:17 pm

  • Quote

Post by BlindSpy » Sun May 16, 2004 7:58 pm

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

Code: Select all

~/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
Top
stahlsau
Guru
Guru
User avatar
Posts: 584
Joined: Fri Jan 09, 2004 8:16 am
Location: WildWestwoods

  • Quote

Post by stahlsau » Mon May 17, 2004 5:59 am

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 ;-)
Top
gnac
Guru
Guru
User avatar
Posts: 302
Joined: Mon Jun 30, 2003 5:01 pm
Location: Columbia River Gorge

  • Quote

Post by gnac » Tue May 18, 2004 8:57 pm

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: Select all

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?
Last edited by gnac on Tue May 25, 2004 9:45 pm, edited 1 time in total.
"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
Top
ecatmur
Advocate
Advocate
User avatar
Posts: 3595
Joined: Mon Oct 20, 2003 8:07 pm
Location: Edinburgh
Contact:
Contact ecatmur
Website

  • Quote

Post by ecatmur » Thu May 20, 2004 6:41 am

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: Select all

/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?
Top
ecatmur
Advocate
Advocate
User avatar
Posts: 3595
Joined: Mon Oct 20, 2003 8:07 pm
Location: Edinburgh
Contact:
Contact ecatmur
Website

  • Quote

Post by ecatmur » Thu May 20, 2004 6:45 am

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: Select all

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?
Top
ecatmur
Advocate
Advocate
User avatar
Posts: 3595
Joined: Mon Oct 20, 2003 8:07 pm
Location: Edinburgh
Contact:
Contact ecatmur
Website

  • Quote

Post by ecatmur » Thu May 20, 2004 6:47 am

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?
Top
Post Reply

243 posts
  • Page 3 of 10
    • Jump to page:
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 10
  • Next

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy