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 7 of 10
    • Jump to page:
  • Previous
  • 1
  • …
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • Next
Author
Message
Keffin
Apprentice
Apprentice
Posts: 202
Joined: Sat Feb 14, 2004 9:44 pm
Location: England

  • Quote

Post by Keffin » Sun Jun 20, 2004 7:53 pm

Dave_Wesnoth wrote:
Keffin wrote:battle for wesnoth (the only thing I have that uses clanlib) still seemed to work fine.
Battle for Wesnoth does not use Clanlib. Only SDL.

David
Sorry, my mistake (predictably considering your sig ;)), clanlib is on my system as a dependency for pingus, not battle for wesnoth.

Lol, I posted this then deleted it when it appeared on a new page and I wondered why on earth I would be posting this in this thread :oops:.
Always cut the deck if it ups your odds.
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 Jun 20, 2004 8:42 pm

I also tried running cruft-blame.py on a couple of entries but kept getting:
Code:

File "./cruft-blame.py", line 128
log = LogFile("/var/log/emerge.log", True)
^
IndentationError: expected an indented block
Indentation matters in python, which is what the error is about - so if you copied and pased it, try downloading the file (use wget if your browser insists on just opening it)
the forums.gentoo.org poster formally known as metal leper
Top
jtally
n00b
n00b
Posts: 4
Joined: Tue Nov 26, 2002 3:31 am
Location: Grand Rapids, MI
Contact:
Contact jtally
Website

  • Quote

Post by jtally » Mon Jun 21, 2004 10:50 pm

metal leper wrote:
I also tried running cruft-blame.py on a couple of entries but kept getting:
Code:

File "./cruft-blame.py", line 128
log = LogFile("/var/log/emerge.log", True)

^
IndentationError: expected an indented block
Indentation matters in python, which is what the error is about - so if you copied and pased it, try downloading the file (use wget if your browser insists on just opening it)
I also get this same error when using the cruft-blame found at http://home.jesus.ox.ac.uk/~ecatmur/my- ... t-blame.py even if I use wget to download it. The version of cruft-blame found at http://home.jesus.ox.ac.uk/~rmoss/porta ... t-blame.py however works just fine.
o9studios::professional media solutions
Top
hepta_sean
Apprentice
Apprentice
User avatar
Posts: 246
Joined: Tue Apr 27, 2004 9:45 pm
Location: Berlin, Germany

  • Quote

Post by hepta_sean » Tue Jun 22, 2004 11:24 pm

Hello again!

ecatmur: Hope, you will be back! :)

Until then, FYI, I have made some patches to the script treating problems, that occured lately:

* The thing with the urw-fonts, already reported earlier in this thread:

Code: Select all

-$(has_version media-fonts/urw-fonts     && fontdir urw-fonts)
+$(has_version "<=media-fonts/urw-fonts-2.0-r1" && fontdir default/Type1)
+$(has_version ">=media-fonts/urw-fonts-2.1" && fontdir urw-fonts)
* I switched from gdm to entrance. -- New false positives:

Code: Select all

+has_version x11-misc/entrance \
+       && PRUNE="${PRUNE}
+       $(echo /var/lib/{:*.Xauth,entrance_ipc_`cat /var/run/entranced.pid`\|*})
+       /var/run/entranced.pid"
* alsa-lib creates the following symlink:

Code: Select all

+$(has_version media-libs/alsa-lib      && echo "/usr/include/sound")
* The new version of mozilla-firefox has some new false positives, I added to XPIApp():

Code: Select all

-       echo "$path"/{chrome/{chrome.rdf,overlayinfo},components/{compreg.dat,xpti.dat},chrome,install.log,searchplugins}
+       echo "$path"/{chrome/{chrome.rdf,overlayinfo},components/{compreg.dat,xpti.dat},components.ini,chrome,extensions,install.log,searchplugins}
* The /usr/lib/eclipse directory is only used for the unslotted versions. I added a 0, so it should get reported once there are only slotted versions left:

Code: Select all

-has_version dev-util/eclipse-sdk \
+has_version dev-util/eclipse-sdk 0 \
        && PRUNE="${PRUNE}
        $(echo /usr/lib/eclipse/{Uninstaller,features,plugins})"
* To solve the issues with the man-pages of samba, svgalib and possibly other packages, which install them into /usr/man, I replace all occurrences of /usr/man/ in the prune list with /usr/share/man/ (The trailing slash is important to let the symlink itself in the prune list):

Code: Select all

 | sed 's/.*\.py$/\0\n\0c\n\0o/' \
+| sed 's/^\/usr\/man\//\/usr\/share\/man\//' \
* With the same kind of hack, the problem with the GL thingies installing into /usr/include/GL, which really is /usr/X11R6/include/GL, can be solved:

Code: Select all

+| sed 's/^\/usr\/include\/GL\//\/usr\/X11R6\/include\/GL\//' \
Hence, these can go:

Code: Select all

-$(has_version media-libs/gle            && echo "/usr/X11R6/include/GL/gle.h")
-$(has_version media-libs/glut          && echo /usr/X11R6/include/GL/glut{,f90}.h)
-$(has_version media-video/ati-drivers   && echo "/usr/X11R6/include/GL/glxATI.h")
* And I also use this hack for my /opt symlink pointing to /usr/opt (Attention: You probably wouldn't want to add this, if /opt is on the root or its own partition):

Code: Select all

+| sed 's/^\/opt\//\/usr\/opt\//' \
 | sort -u \
 >/tmp/cruft-portagefiles
* Prepared with this I gave cruft a try on /opt:

Code: Select all

-       /etc/opt
-       /opt
-       /var/opt
It works very well! Except for tomcat with a lot of false positives (WEB-INF things and others), which I unmerged, since I didn't use it, anyway. But you probably would want to add it sometime, ...
Personally, I think /opt should be considered portage administrated and treated by cruft, and other things should go to /usr/local, but you disagreed earlier in this thread, ...

If you're interested the latest version of my modified cruft can be found here (Again: For "normal" systems the line regarding /usr/opt should be removed.) and a patch against the last "official" version is here.

Regards,
sean
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 Jun 29, 2004 8:04 pm

Here for a moment, although I'm still a little busy... :(

I've made all the changes hepta_sean suggested, and I'm working on making it more flexible (ick!)
Great work everyone, hopefully I can reward your patience...
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Top
riksta
n00b
n00b
Posts: 73
Joined: Fri Apr 16, 2004 12:51 pm
Location: Manchester, UK

  • Quote

Post by riksta » Wed Jun 30, 2004 11:54 am

i don't know if this has been said before, but if the script is outputting each file that should be removed on a single line, then you can use the 'xargs' command like so

./script | xargs rm -rf
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 » Wed Jun 30, 2004 11:59 am

it has been said before, but that's far too dangerous a way to do it

do this instead

./script | tee cruft-list

then edit cruft-list if there's any thing that shouldn't be being removed

and then you can do rm -r `cat cruftlist` (or use xargs if you want)

at least replace the rm -rf in what you said to rm -ri
the forums.gentoo.org poster formally known as metal leper
Top
stillman
Apprentice
Apprentice
User avatar
Posts: 223
Joined: Sat Dec 07, 2002 6:01 pm
Location: Vienna, Austria

  • Quote

Post by stillman » Wed Jun 30, 2004 1:37 pm

cruft lists
/etc/lircd.conf
/etc/lircmd.conf

which are needed for LIRC

/etc/samba/credentials

which i use in fstab to mount smbfs(well, kind of individual but i'm not the only one)

/etc/wvdial.conf

needed for dialup

/etc/xcdroast.conf


hope that helps

:wink:
Top
BlindSpy
Apprentice
Apprentice
User avatar
Posts: 263
Joined: Sat Mar 20, 2004 4:17 pm

  • Quote

Post by BlindSpy » Wed Jul 21, 2004 11:09 pm

ed im just wondering if you've updated the version number with the latest updates you've done? (since the hepta_sean updates)
Symlinks to:
xorg.conf
Top
hotplainrice
Tux's lil' helper
Tux's lil' helper
Posts: 92
Joined: Sun Apr 25, 2004 1:07 pm

  • Quote

Post by hotplainrice » Sun Jul 25, 2004 1:06 am

Now I see one advantage of using gobolinux filesystem.. No cruft :)
Top
kamagurka
Veteran
Veteran
User avatar
Posts: 1026
Joined: Sun Jan 25, 2004 1:55 am
Location: /germany/munich
Contact:
Contact kamagurka
Website

  • Quote

Post by kamagurka » Sun Jul 25, 2004 2:24 am

hotplainrice wrote:Now I see one advantage of using gobolinux filesystem.. No cruft
explain please.
If you loved me, you'd all kill yourselves today.
--Spider Jerusalem, the Word
Top
hotplainrice
Tux's lil' helper
Tux's lil' helper
Posts: 92
Joined: Sun Apr 25, 2004 1:07 pm

  • Quote

Post by hotplainrice » Mon Jul 26, 2004 7:07 am

Everything that belongs to a program is self-contained in a directory (e.g. /Programs/Foo) which has links pointing to the files inside. This way if you want to delete a program. Just delete the whole directory or version you don't want anymore.

the directories would look like this under /Programs/GCC

ls -l /Programs/GCC
total 1
drwxr-xr-x 9 gobo gobo 248 2003-12-08 13:35 3.3.2
lrwxrwxrwx 1 gobo gobo 5 2004-07-17 18:26 Current -> 3.3.2

ls -l /Programs/GCC/3.3.2
total 5
drwxr-xr-x 2 gobo gobo 384 2003-12-08 13:35 bin
drwxr-xr-x 3 gobo gobo 72 2003-11-30 23:04 include
drwxr-xr-x 2 gobo gobo 168 2003-11-30 23:04 info
drwxr-xr-x 3 gobo gobo 552 2003-12-03 10:39 lib
drwxr-xr-x 4 gobo gobo 96 2003-11-30 23:04 man
drwxr-xr-x 2 gobo gobo 112 2003-12-02 00:52 Resources
lrwxrwxrwx 1 gobo gobo 20 2004-07-17 18:26 share -> /System/Links/Shared
drwxr-xr-x 3 gobo gobo 72 2003-11-30 23:04 Shared

This is on my fileserver which I used to test GoboLinux. I don't really like it (its a desktop distro and I love portage :D) but the idea of filesystem as a package manager is great. Read the docs as I can't explain things well. :)
http://www.gobolinux.org
Top
BlindSpy
Apprentice
Apprentice
User avatar
Posts: 263
Joined: Sat Mar 20, 2004 4:17 pm

  • Quote

Post by BlindSpy » Wed Jul 28, 2004 9:46 pm

I added this to http://gentoo-wiki.com here
Symlinks to:
xorg.conf
Top
imon fyre
n00b
n00b
User avatar
Posts: 31
Joined: Thu Dec 18, 2003 5:17 am
Location: sudbury on
Contact:
Contact imon fyre
Website

  • Quote

Post by imon fyre » Sun Aug 01, 2004 3:37 pm

ran cruft, and here is some of the stuff that i think doesnt need to go

Code: Select all

/etc/distcc
/etc/distcc/hosts
/etc/domainname
/etc/timezone/usr/lib/distcc/bin/c++
/usr/lib/distcc/bin/cc
/usr/lib/distcc/bin/g++
/usr/lib/distcc/bin/gcc
/usr/lib/distcc/bin/i586-pc-linux-gnu-c++
/usr/lib/distcc/bin/i586-pc-linux-gnu-g++
/usr/lib/distcc/bin/i586-pc-linux-gnu-gcc
/usr/lib/opengl/nvidia/lib/libnvidia-tls.so.1
/usr/lib/opengl/xfree/include/glext.h
/usr/qt/3/etc/settings/.qtrc.lock
/usr/qt/3/etc/settings/qtrc
/usr/sbin/gcc-config
/usr/share/gcc-data/i386-pc-linux-gnu
/usr/share/gcc-data/i386-pc-linux-gnu/3.3
/usr/share/gcc-data/i386-pc-linux-gnu/3.3/info
/usr/share/gcc-data/i386-pc-linux-gnu/3.3/info/dir.old
/usr/share/gcc-data/i586-pc-linux-gnu/3.3/info/dir
/usr/share/gcc-data/i586-pc-linux-gnu/3.3/info/dir.old
/var/cache/apache-mm/mm.23709.sem
ps, nice script dude... really shows some ingenuity
Top
marienZ
Retired Dev
Retired Dev
Posts: 30
Joined: Wed Jul 02, 2003 10:56 am
Location: the Netherlands

  • Quote

Post by marienZ » Tue Aug 03, 2004 11:23 am

Nice script, it caught heaps of leftover .ph files from long-gone perl versions, a bunch of files in /etc, and some other stuff.

I've made some changes to reduce the number of false positives. patch available.

/etc/udev/rules.d/ and /etc/logrotate.d/ are directories where both portage and the user can place config files. I marked the entire directory as "not cruft", because the name(s) of user-created files are not predictable. Advantage: user-created config files are not marked as cruft. Disadvantage: if another package installs something to /etc/logrotate.d/ and that package is then removed, the leftover file is not marked as cruft (it should).

I assume that files matching /var/log/*.[0-9].gz are rotated logs. It would probably be better to mark e.g. /var/log/foo.3.gz as cruft if /var/log/foo.gz doesn't exist, but I'm too lazy (and don't know enough bash) to do that.

/var/lib/postgresql is gentoo's default database location. I'm not sure if that's the "right" place to put a database.

The rest should be obvious (just adds support for some packages and updates some things that were moved around in newer ebuilds).

Remaining (possible) problems:

I've deleted some gimp-related symlinks (/usr/bin/gimp to /usr/bin/gimp-2 and similar). I'm not sure if those should exist or not, and currently too lazy to figure it out.

/usr/lib/opengl/xorg-x11/include/glext.h is marked as cruft. The latest opengl-update asked me to move this file around. I'm not sure how to handle this. I hope newer xorg-x11 and opengl-update ebuilds take care of this.
Top
BlindSpy
Apprentice
Apprentice
User avatar
Posts: 263
Joined: Sat Mar 20, 2004 4:17 pm

  • Quote

Post by BlindSpy » Tue Aug 03, 2004 2:33 pm

marienZ wrote:I've deleted some gimp-related symlinks (/usr/bin/gimp to /usr/bin/gimp-2 and similar). I'm not sure if those should exist or not, and currently too lazy to figure it out.
That should not exist but some people creat them to start gimp with the normal command (gimp) instead of gimp-2.

I've also got another one that nags me. VSFTPD requires the log file /var/log/vsftpd/vsftp.log to be there to run, yet it is detected as cruft. I think the user has to create the log file for vsftpd manually no matter where it goes but is there some way to just manually ignore that name?
Symlinks to:
xorg.conf
Top
webkiller71
n00b
n00b
Posts: 20
Joined: Sat Nov 29, 2003 1:32 pm

  • Quote

Post by webkiller71 » Wed Aug 04, 2004 11:45 am

it says says I should delete my /selinux folder and my selinux stuff in /etc/security/selinux
I also run dhcp in a chroot and it says I should delete /chroot/dhcp
also uptimed should be deleted
Top
marienZ
Retired Dev
Retired Dev
Posts: 30
Joined: Wed Jul 02, 2003 10:56 am
Location: the Netherlands

  • Quote

Post by marienZ » Wed Aug 04, 2004 1:34 pm

BlindSpy wrote:
marienZ wrote:I've deleted some gimp-related symlinks (/usr/bin/gimp to /usr/bin/gimp-2 and similar).
That should not exist but some people creat them to start gimp with the normal command (gimp) instead of gimp-2.
If I understand /usr/portage/media-gfx/gimp/ChangeLog correctly those were also created by some older ebuilds. Not sure why they weren't deleted by portage though.
I've also got another one that nags me. VSFTPD requires the log file /var/log/vsftpd/vsftp.log to be there to run, yet it is detected as cruft. I think the user has to create the log file for vsftpd manually no matter where it goes but is there some way to just manually ignore that name?
You probably want to change

Code: Select all

has_version net-ftp/vsftpd \
        && PRUNE="${PRUNE}
        /etc/ftpusers
        /etc/vsftpd/vsftpd.conf
        /usr/share/vsftpd"
to

Code: Select all

has_version net-ftp/vsftpd \
        && PRUNE="${PRUNE}
        /etc/ftpusers
        /etc/vsftpd/vsftpd.conf
        /usr/share/vsftpd
        /var/log/vsftp/vsftpd.log"
in the script.
Top
59729
Apprentice
Apprentice
Posts: 279
Joined: Mon Jun 21, 2004 12:57 am

  • Quote

Post by 59729 » Fri Aug 06, 2004 2:05 pm

These should probably not be removed...

****** app-antivirus/clamav : [ I] 0.75 (0) ******

/etc/clamav.conf
/etc/freshclam.conf


****** net-im/bitlbee : [M~I] 0.90-r1 (0)e ******
/var/lib/bitlbee/lappen.accounts
/var/lib/bitlbee/lappen.nicks

not only lappen.accounts but all *.accounts and *.nicks files are used by bitlbee



And a little questions are these safe to delete?
**** dev-lang/python : [ I] 2.3.3-r1 (2.3) ****

Code: Select all

/etc/xml
/etc/xml/catalog
/lib/udev-state/devices.tar.bz2
/usr/bin/i386-pc-linux-gnu-c++
/usr/bin/i386-pc-linux-gnu-g++
/usr/bin/i386-pc-linux-gnu-gccd /
/usr/sbin/gcc-config
/var/lib/iptraf/iptraf.cfg
/var/lib/iptraf/ports.dat
/var/lib/iptraf/savedfilters.dat
/var/run/cgisock
/var/run/iptraf/iptraf-itrafmoncount.dat
/var/run/iptraf/iptraf-lanmoncount.dat
/var/run/iptraf/iptraf-processcount.dat

/usr/lib/python2.3/lib-tk
/usr/lib/python2.3/lib-tk/Canvas.py
/usr/lib/python2.3/lib-tk/Canvas.pyc
/usr/lib/python2.3/lib-tk/Canvas.pyo
/usr/lib/python2.3/lib-tk/Dialog.py
/usr/lib/python2.3/lib-tk/Dialog.pyc
/usr/lib/python2.3/lib-tk/Dialog.pyo
/usr/lib/python2.3/lib-tk/FileDialog.py
/usr/lib/python2.3/lib-tk/FileDialog.pyc
/usr/lib/python2.3/lib-tk/FileDialog.pyo
/usr/lib/python2.3/lib-tk/FixTk.py
/usr/lib/python2.3/lib-tk/FixTk.pyc
/usr/lib/python2.3/lib-tk/FixTk.pyo
/usr/lib/python2.3/lib-tk/ScrolledText.py
/usr/lib/python2.3/lib-tk/ScrolledText.pyc
/usr/lib/python2.3/lib-tk/ScrolledText.pyo
/usr/lib/python2.3/lib-tk/SimpleDialog.py
/usr/lib/python2.3/lib-tk/SimpleDialog.pyc
/usr/lib/python2.3/lib-tk/SimpleDialog.pyo
/usr/lib/python2.3/lib-tk/Tix.py
/usr/lib/python2.3/lib-tk/Tix.pyc
/usr/lib/python2.3/lib-tk/Tix.pyo
/usr/lib/python2.3/lib-tk/Tkconstants.py
/usr/lib/python2.3/lib-tk/Tkconstants.pyc
/usr/lib/python2.3/lib-tk/Tkconstants.pyo
/usr/lib/python2.3/lib-tk/Tkdnd.py
/usr/lib/python2.3/lib-tk/Tkdnd.pyc
/usr/lib/python2.3/lib-tk/Tkdnd.pyo
/usr/lib/python2.3/lib-tk/Tkinter.py
/usr/lib/python2.3/lib-tk/Tkinter.pyc
/usr/lib/python2.3/lib-tk/Tkinter.pyo
/usr/lib/python2.3/lib-tk/tkColorChooser.py
/usr/lib/python2.3/lib-tk/tkColorChooser.pyc
/usr/lib/python2.3/lib-tk/tkColorChooser.pyo
/usr/lib/python2.3/lib-tk/tkCommonDialog.py
/usr/lib/python2.3/lib-tk/tkCommonDialog.pyc
/usr/lib/python2.3/lib-tk/tkCommonDialog.pyo
/usr/lib/python2.3/lib-tk/tkFileDialog.py
/usr/lib/python2.3/lib-tk/tkFileDialog.pyc
/usr/lib/python2.3/lib-tk/tkFileDialog.pyo
/usr/lib/python2.3/lib-tk/tkFont.py
/usr/lib/python2.3/lib-tk/tkFont.pyc
/usr/lib/python2.3/lib-tk/tkFont.pyo
/usr/lib/python2.3/lib-tk/tkMessageBox.py
/usr/lib/python2.3/lib-tk/tkMessageBox.pyc
/usr/lib/python2.3/lib-tk/tkMessageBox.pyo
/usr/lib/python2.3/lib-tk/tkSimpleDialog.py
/usr/lib/python2.3/lib-tk/tkSimpleDialog.pyc
/usr/lib/python2.3/lib-tk/tkSimpleDialog.pyo
/usr/lib/python2.3/lib-tk/turtle.py
/usr/lib/python2.3/lib-tk/turtle.pyc
/usr/lib/python2.3/lib-tk/turtle.pyo
Top
ScribeOfTheNile
n00b
n00b
Posts: 45
Joined: Sat Apr 03, 2004 5:09 am

  • Quote

Post by ScribeOfTheNile » Sat Aug 07, 2004 3:08 am

imon fyre wrote:ran cruft, and here is some of the stuff that i think doesnt need to go

Code: Select all

[snip]
/etc/timezone
[/snip]
I'd like to second that; it's created by KDE when setting a timezone.

BTW: Your script is ub3r. :D
Top
nsahoo
l33t
l33t
User avatar
Posts: 618
Joined: Thu Jul 17, 2003 10:57 pm
Contact:
Contact nsahoo
Website

  • Quote

Post by nsahoo » Sat Aug 07, 2004 8:15 pm

Although cruft cleaning can be really useful .. I am too scared to use your script to delete any file. :? it seems safer than only suicide.
Top
blscreen
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 118
Joined: Tue Mar 04, 2003 7:49 pm
Location: Innsbruck

  • Quote

Post by blscreen » Fri Aug 13, 2004 3:16 pm

Great script, thank you and keep on the good work! :)

I have some false positives here, for example:

Code: Select all

# cruft-blame.py /etc/snort/snort.conf
/etc/snort/snort.conf: 04/18/04 12:58:25
Cannot find any possible owners. Possible reasons are that the owner
was merged using ebuild instead of emerge, that it is generated or
cached data, that it is a config file, or that you created it. If you
believe this is reproducible, please report it.
# qpkg -f /etc/snort/snort.conf
net-analyzer/snort *
# qpkg -c /etc/snort/snort.conf
# 
Reemerging snort does not help.
Top
BlindSpy
Apprentice
Apprentice
User avatar
Posts: 263
Joined: Sat Mar 20, 2004 4:17 pm

  • Quote

Post by BlindSpy » Sun Aug 15, 2004 11:18 pm

marienZ wrote:
BlindSpy wrote:
marienZ wrote:I've deleted some gimp-related symlinks (/usr/bin/gimp to /usr/bin/gimp-2 and similar).
That should not exist but some people creat them to start gimp with the normal command (gimp) instead of gimp-2.
If I understand /usr/portage/media-gfx/gimp/ChangeLog correctly those were also created by some older ebuilds. Not sure why they weren't deleted by portage though.
I've also got another one that nags me. VSFTPD requires the log file /var/log/vsftpd/vsftp.log to be there to run, yet it is detected as cruft. I think the user has to create the log file for vsftpd manually no matter where it goes but is there some way to just manually ignore that name?
You probably want to change

Code: Select all

has_version net-ftp/vsftpd \
        && PRUNE="${PRUNE}
        /etc/ftpusers
        /etc/vsftpd/vsftpd.conf
        /usr/share/vsftpd"
to

Code: Select all

has_version net-ftp/vsftpd \
        && PRUNE="${PRUNE}
        /etc/ftpusers
        /etc/vsftpd/vsftpd.conf
        /usr/share/vsftpd
        /var/log/vsftp/vsftpd.log"
in the script.
hey thanks man =)
Symlinks to:
xorg.conf
Top
dashnu
l33t
l33t
Posts: 703
Joined: Wed Jul 21, 2004 10:49 pm
Location: Casco Maine
Contact:
Contact dashnu
Website

  • Quote

Post by dashnu » Tue Aug 17, 2004 1:27 am

This script rocks, If you use it right from the start of a install your system stays clean.

I run it after every emerge -C if I decied I dont like the app or what-not. If i get scared to delete something I just put a .DELETE after the file name and test for a while and if nothing breaks I wipe it.

Anyhoot Good Work I think It should be put in portage under

sys-USEATOWNRISK/cruft :D :D
write quit bang
Top
fernandotcl
Veteran
Veteran
User avatar
Posts: 1396
Joined: Thu Nov 20, 2003 3:07 am
Location: Sao Paulo, Brazil

  • Quote

Post by fernandotcl » Sun Aug 22, 2004 7:16 pm

I don't know if this was already mentioned before (I didn't read the whole thread :wink:), but the following files are marked to be deleted:

Code: Select all

/var/log
/var/log/news/news.crit
/var/log/news/news.err
/var/log/news/news.notice
/var/run/ppp0.pid
The files in /log are probably being marked due to sysklogd. And files in /var/run shouldn't ever be marked, imo.

Btw, it's the best Portage script I've seen so far. :D
Top
Post Reply

243 posts
  • Page 7 of 10
    • Jump to page:
  • Previous
  • 1
  • …
  • 5
  • 6
  • 7
  • 8
  • 9
  • 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

 

 

magic