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  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Blubbmon
Apprentice
Apprentice


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

PostPosted: Tue Feb 01, 2005 5:09 pm    Post subject: Reply with quote

mvila wrote:
has this original script been abandoned?

Yes, but as I saw you have allready found the successor script of hepta_sean :-)

https://forums.gentoo.org/viewtopic.php?t=254197
Back to top
View user's profile Send private message
Nazadus
n00b
n00b


Joined: 20 Aug 2004
Posts: 20
Location: Groves, Texas, USA, Earth, Sol, Milky Way

PostPosted: Sun Feb 13, 2005 6:05 pm    Post subject: Reply with quote

I don't if you still care to have input from the crowd, but...
http://etherpunk.com/files/cruft_output.txt.bz2 (24k) is mine.
I currently run apache, postfix, and all the fun stuff and used the virtual domain howto (so I have tons of stuff) and I tend to do a worldly update about every 6 months.

This file is the result of the command:
./cruft > cruft_output.txt 2> cruft_output.txt
So all errors (and yes, I did see some weirdness) should be placed in here.

If you're intersted, here is my world file too:
http://etherpunk.com/files/world.bz2

I also ran regenworld a mere 15 minutes ago, so that's as recent as I can get.

I noticed that the cruft script wanted to nuke some of my conf files such as awstats.

Also, becuase I did the virtual howto (I think) it wanted to nuke my /etc/postfix/mysql-*.cf files -- which are *very* important for the virtual hosting.

I hope this helps.
If their is anything I can do to help, PM me.
Kenny
Back to top
View user's profile Send private message
Nazadus
n00b
n00b


Joined: 20 Aug 2004
Posts: 20
Location: Groves, Texas, USA, Earth, Sol, Milky Way

PostPosted: Sun Feb 13, 2005 6:06 pm    Post subject: Reply with quote

doh! I wished I would have notcied that this had multiple pages...
ok... I'm never posting before a fiene hit again... :oops:
Back to top
View user's profile Send private message
mope
Apprentice
Apprentice


Joined: 23 Feb 2003
Posts: 206

PostPosted: Wed Apr 06, 2005 10:17 pm    Post subject: Reply with quote

ok, I'm a bit confused.

I went to etcatmur's site and looked at his scripts.

dep, cruft, cruft2 all seem to be recent.
what's the "official" word on whether they've been abandoned?

I started using findcruft, but an older version of cruft still works (0.0.12), whereas I read that this newest one doesn't (so I haven't tried it). EDIT: I tried .13 (most recent) and it works too on my box.

so are dep and cruft still to be used?
or replaced by unclepine and findcruft?


thanks everyone for the great script work.
Back to top
View user's profile Send private message
CRV§ADER//KY
Guru
Guru


Joined: 30 Aug 2004
Posts: 405
Location: Torino

PostPosted: Mon Jun 13, 2005 4:55 pm    Post subject: Reply with quote

cruft tries to delete /etc/raidtab, I think it should be added to the ignore list.
_________________
Kyrie, Ignis Divine, Eleison ~ Elfen Lied
Back to top
View user's profile Send private message
nlindblad
Guru
Guru


Joined: 30 Jun 2005
Posts: 476
Location: Lund, Sweden

PostPosted: Sat Oct 15, 2005 3:17 pm    Post subject: Reply with quote

With the latest http://home.jesus.ox.ac.uk/~ecatmur/my-bin/cruft I get:

Quote:

cruft: line 297: `motif-profile': not a valid identifier


Fixed with the following patch:
Code:

293c293
< function motif-profile() {
---
> function motifprofile() {
502c502
< $(has_version '=x11-libs/openmotif-2.2*' && motif-profile openmotif-2.2)
---
> $(has_version '=x11-libs/openmotif-2.2*' && motifprofile openmotif-2.2)


GNU bash, version 3.00.16(1)-release (i686-pc-linux-gnu)
Back to top
View user's profile Send private message
boudewijn
Apprentice
Apprentice


Joined: 11 Jan 2005
Posts: 257
Location: Netherlands

PostPosted: Thu Nov 24, 2005 6:34 pm    Post subject: Reply with quote

this link is quite old, and currently dead.

Has anyone got a new version (as the one in the start-post is outdated) ?
_________________
Mijn Nederlandstalige Gentoo forum:
http://www.gentoo-forum.nl
Back to top
View user's profile Send private message
nlindblad
Guru
Guru


Joined: 30 Jun 2005
Posts: 476
Location: Lund, Sweden

PostPosted: Thu Nov 24, 2005 6:53 pm    Post subject: Reply with quote

boudewijn wrote:
this link is quite old, and currently dead.

Has anyone got a new version (as the one in the start-post is outdated) ?


I think the script is dead aswell...
Back to top
View user's profile Send private message
boudewijn
Apprentice
Apprentice


Joined: 11 Jan 2005
Posts: 257
Location: Netherlands

PostPosted: Thu Nov 24, 2005 7:20 pm    Post subject: Reply with quote

allright.

too bad, seemed to have a really nice purpose.

Do you know another way of preventing 'dead' files and stuff?
_________________
Mijn Nederlandstalige Gentoo forum:
http://www.gentoo-forum.nl
Back to top
View user's profile Send private message
CRV§ADER//KY
Guru
Guru


Joined: 30 Aug 2004
Posts: 405
Location: Torino

PostPosted: Thu Nov 24, 2005 8:26 pm    Post subject: Reply with quote

actually, the script still does work quite well. It just will generate a few false positives, that's all (but the rule about not to ever delete a file that you don't know about is always valid, so it isn't really a big issue)
_________________
Kyrie, Ignis Divine, Eleison ~ Elfen Lied
Back to top
View user's profile Send private message
killerwhile
Tux's lil' helper
Tux's lil' helper


Joined: 16 May 2005
Posts: 130
Location: Switzerland

PostPosted: Sun Apr 02, 2006 5:09 pm    Post subject: Reply with quote

Nice script, thank you.

You may just add a test to check if /root/.cruft is present, otherwise it die in a not really clean way.
Back to top
View user's profile Send private message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1080

PostPosted: Sat May 06, 2006 11:10 pm    Post subject: Reply with quote

Can anyone make an ebuild of this for the portage overlay?
Back to top
View user's profile Send private message
Phlogiston
Veteran
Veteran


Joined: 27 Jan 2004
Posts: 1925
Location: Europe, Swizerland

PostPosted: Sat Aug 12, 2006 9:42 am    Post subject: Reply with quote

The requested URL /~ed/main/my-bin/cruft was not found on this server.

Where can I get that script?

/edit: Ok I could download 1.0.4 version, is this the latest?
_________________
Workstation: 5.1 SurroundSound, LIRC remote control; Laptop [IBM-T43]: patched sources, s2disk/ram, fingerprint sensor
Back to top
View user's profile Send private message
micmac
l33t
l33t


Joined: 28 Nov 2003
Posts: 996

PostPosted: Sat Aug 12, 2006 5:10 pm    Post subject: Reply with quote

I think by 1.0.4 you mean findcruft-1.0.4. cruft and findcruft are scripts by two different authors. ecatmur moved his original cruft script to svn. Link
Back to top
View user's profile Send private message
Phlogiston
Veteran
Veteran


Joined: 27 Jan 2004
Posts: 1925
Location: Europe, Swizerland

PostPosted: Sat Aug 12, 2006 5:16 pm    Post subject: Reply with quote

micmac wrote:
I think by 1.0.4 you mean findcruft-1.0.4. cruft and findcruft are scripts by two different authors. ecatmur moved his original cruft script to svn. Link


Np findcruft works like a charm... But whats the shell command to delete files listed in a file? 8)
_________________
Workstation: 5.1 SurroundSound, LIRC remote control; Laptop [IBM-T43]: patched sources, s2disk/ram, fingerprint sensor
Back to top
View user's profile Send private message
micmac
l33t
l33t


Joined: 28 Nov 2003
Posts: 996

PostPosted: Sun Aug 13, 2006 2:24 am    Post subject: Reply with quote

Just "bend" it over xargs :)
Code:

cat <file with cruft> | xargs rm -rf


Beware, it won't ask for acknowledgement ;-)
Back to top
View user's profile Send private message
manouchk
Apprentice
Apprentice


Joined: 08 May 2006
Posts: 288
Location: Vitória (ES), Brasil

PostPosted: Sun Oct 15, 2006 12:35 pm    Post subject: Reply with quote

I runned cruft for the fisrt time and :

Code:

./cruft
Developing list of potential false positives...
Collecting files managed by Portage...
./cruft: line 1170: /root/.cruft/portagefiles: No such file or directory
Collecting other files...
sed: can't read /etc/texmf/web2c/fmtutil.cnf: No such file or directory
Finding files on your filesystem...
./cruft: line 1182: /root/.cruft/allfiles: No such file or directory
Comparing file lists...

comm: /root/.cruft/allfiles: No such file or directory
tee: /root/.cruft/cruftfiles: No such file or directory


I made a mistake??
Back to top
View user's profile Send private message
manouchk
Apprentice
Apprentice


Joined: 08 May 2006
Posts: 288
Location: Vitória (ES), Brasil

PostPosted: Sun Oct 15, 2006 11:57 pm    Post subject: Reply with quote

answer => mkdir ~/.cruft
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
Page 10 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