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 10 of 10
    • Jump to page:
  • Previous
  • 1
  • …
  • 6
  • 7
  • 8
  • 9
  • 10
Author
Message
Blubbmon
Apprentice
Apprentice
Posts: 156
Joined: Fri Feb 13, 2004 8:51 am
Location: Germany, Potsdam
Contact:
Contact Blubbmon
Website

  • Quote

Post by Blubbmon » Tue Feb 01, 2005 5:09 pm

mvila wrote:has this original script been abandoned?
Yes, but as I saw you have allready found the successor script of hepta_sean :-)

http://forums.gentoo.org/viewtopic.php?t=254197
Top
Nazadus
n00b
n00b
Posts: 20
Joined: Fri Aug 20, 2004 6:00 pm
Location: Groves, Texas, USA, Earth, Sol, Milky Way
Contact:
Contact Nazadus
Website

  • Quote

Post by Nazadus » Sun Feb 13, 2005 6:05 pm

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
Top
Nazadus
n00b
n00b
Posts: 20
Joined: Fri Aug 20, 2004 6:00 pm
Location: Groves, Texas, USA, Earth, Sol, Milky Way
Contact:
Contact Nazadus
Website

  • Quote

Post by Nazadus » Sun Feb 13, 2005 6:06 pm

doh! I wished I would have notcied that this had multiple pages...
ok... I'm never posting before a fiene hit again... :oops:
Top
mope
Apprentice
Apprentice
Posts: 206
Joined: Sun Feb 23, 2003 1:33 pm

  • Quote

Post by mope » Wed Apr 06, 2005 10:17 pm

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.
Top
CRV§ADER//KY
Guru
Guru
User avatar
Posts: 405
Joined: Mon Aug 30, 2004 6:47 pm
Location: Torino
Contact:
Contact CRV§ADER//KY
Website

  • Quote

Post by CRV§ADER//KY » Mon Jun 13, 2005 4:55 pm

cruft tries to delete /etc/raidtab, I think it should be added to the ignore list.
Kyrie, Ignis Divine, Eleison ~ Elfen Lied
Top
nlindblad
Guru
Guru
User avatar
Posts: 476
Joined: Thu Jun 30, 2005 1:07 pm
Location: Lund, Sweden
Contact:
Contact nlindblad
Website

  • Quote

Post by nlindblad » Sat Oct 15, 2005 3:17 pm

With the latest http://home.jesus.ox.ac.uk/~ecatmur/my-bin/cruft I get:
cruft: line 297: `motif-profile': not a valid identifier
Fixed with the following patch:

Code: Select all

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)
Top
boudewijn
Apprentice
Apprentice
Posts: 257
Joined: Tue Jan 11, 2005 11:53 pm
Location: Netherlands
Contact:
Contact boudewijn
Website

  • Quote

Post by boudewijn » Thu Nov 24, 2005 6:34 pm

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
Top
nlindblad
Guru
Guru
User avatar
Posts: 476
Joined: Thu Jun 30, 2005 1:07 pm
Location: Lund, Sweden
Contact:
Contact nlindblad
Website

  • Quote

Post by nlindblad » Thu Nov 24, 2005 6:53 pm

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...
Top
boudewijn
Apprentice
Apprentice
Posts: 257
Joined: Tue Jan 11, 2005 11:53 pm
Location: Netherlands
Contact:
Contact boudewijn
Website

  • Quote

Post by boudewijn » Thu Nov 24, 2005 7:20 pm

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
Top
CRV§ADER//KY
Guru
Guru
User avatar
Posts: 405
Joined: Mon Aug 30, 2004 6:47 pm
Location: Torino
Contact:
Contact CRV§ADER//KY
Website

  • Quote

Post by CRV§ADER//KY » Thu Nov 24, 2005 8:26 pm

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
Top
killerwhile
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 130
Joined: Mon May 16, 2005 9:19 am
Location: Switzerland
Contact:
Contact killerwhile
Website

  • Quote

Post by killerwhile » Sun Apr 02, 2006 5:09 pm

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.
Top
grant123
Veteran
Veteran
Posts: 1109
Joined: Wed Mar 23, 2005 1:48 am

  • Quote

Post by grant123 » Sat May 06, 2006 11:10 pm

Can anyone make an ebuild of this for the portage overlay?
Top
Phlogiston
Veteran
Veteran
User avatar
Posts: 1925
Joined: Tue Jan 27, 2004 12:05 pm
Location: Europe, Swizerland

  • Quote

Post by Phlogiston » Sat Aug 12, 2006 9:42 am

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
Top
micmac
l33t
l33t
Posts: 996
Joined: Fri Nov 28, 2003 8:38 pm

  • Quote

Post by micmac » Sat Aug 12, 2006 5:10 pm

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
Top
Phlogiston
Veteran
Veteran
User avatar
Posts: 1925
Joined: Tue Jan 27, 2004 12:05 pm
Location: Europe, Swizerland

  • Quote

Post by Phlogiston » Sat Aug 12, 2006 5:16 pm

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
Top
micmac
l33t
l33t
Posts: 996
Joined: Fri Nov 28, 2003 8:38 pm

  • Quote

Post by micmac » Sun Aug 13, 2006 2:24 am

Just "bend" it over xargs :)

Code: Select all

cat <file with cruft> | xargs rm -rf
Beware, it won't ask for acknowledgement ;-)
Top
manouchk
Apprentice
Apprentice
User avatar
Posts: 288
Joined: Mon May 08, 2006 8:27 pm
Location: Vitória (ES), Brasil
Contact:
Contact manouchk
Website

  • Quote

Post by manouchk » Sun Oct 15, 2006 12:35 pm

I runned cruft for the fisrt time and :

Code: Select all

./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??
Top
manouchk
Apprentice
Apprentice
User avatar
Posts: 288
Joined: Mon May 08, 2006 8:27 pm
Location: Vitória (ES), Brasil
Contact:
Contact manouchk
Website

  • Quote

Post by manouchk » Sun Oct 15, 2006 11:57 pm

answer => mkdir ~/.cruft
Top
Post Reply

243 posts
  • Page 10 of 10
    • Jump to page:
  • Previous
  • 1
  • …
  • 6
  • 7
  • 8
  • 9
  • 10

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