cleaning junk for Linux

Discussion in 'all things UNIX' started by moontan, Jul 19, 2012.

Thread Status:
Not open for further replies.
  1. moontan

    moontan Registered Member

    Joined:
    Sep 11, 2010
    Posts:
    3,931
    Location:
    Québec
    easy steps to clean junk off your Linux machine:


    * Synaptic: in the Status tab if there is stuff to be removed it's gonna be in the section "Not installed (residual configuration)"
    that section only appears if there is stuff to be removed

    * gtkorphan: everything in the "Orphaned packages" tab should be safe to remove.

    * Bleachbit: i use Bleachbit (as root) first, then Bleachbit.

    * finally, "sudo apt-get autoremove" from the Terminal.
    there will be rarely any stuff there after all the steps above.

    it's always good to have a recent image in case you FUBAR your machine. ;)
     
  2. Hungry Man

    Hungry Man Registered Member

    Joined:
    May 11, 2011
    Posts:
    9,146
    I've removed quite a few packages I don't need. Probably saved me a few hundred megabytes and a bit of RAM (some were running processes) + reduced attack surface.

    If you're looking for a really clean Ubuntu I'd suggest the minimal install.
     
  3. moontan

    moontan Registered Member

    Joined:
    Sep 11, 2010
    Posts:
    3,931
    Location:
    Québec
    Ubuntu runs like a slug on my machine.

    anyway, i removed a lot of stuff; Libre Office, Mono, Java, Samba.
    that's at least 500 MB right there. ;)
     
  4. firefox2008

    firefox2008 Registered Member

    Joined:
    May 17, 2007
    Posts:
    125
  5. moontan

    moontan Registered Member

    Joined:
    Sep 11, 2010
    Posts:
    3,931
    Location:
    Québec
  6. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    10,224
    Unnecessary and even dangerous.
    And will yield no performance improvement.
    Mrk
     
  7. moontan

    moontan Registered Member

    Joined:
    Sep 11, 2010
    Posts:
    3,931
    Location:
    Québec
    the performance i get is that my image is very small.
    it takes me 3 minutes, give or take 3 seconds, to restore an image.

    i restore images at least 10 times a week.
    a lot more when i go nuts.lol
    time is everything for me.

    if i screw up, the fix is only 3 minutes away...
     
  8. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    10,224
    10 times a week? o_O
    Mrk
     
  9. chrisretusn

    chrisretusn Registered Member

    Joined:
    Jun 16, 2004
    Posts:
    1,672
    Location:
    Philippines
    :eek: Not all that surprised, based on first post.
     
  10. moontan

    moontan Registered Member

    Joined:
    Sep 11, 2010
    Posts:
    3,931
    Location:
    Québec
    i use image restore as a souped-up 'uninstaller'.

    if i install a program and it does not work out or i don't like it, i just restore to 'uninstall' a program.
    this way, i'm sure everything's gone.

    keeps the machine lean and mean.lol
     
  11. chronomatic

    chronomatic Registered Member

    Joined:
    Apr 9, 2009
    Posts:
    1,343
    You won't see a performance increase by restoring an image. Linux is not Windows, it has no "Windows rot."
     
  12. To be fair... If you install Linux on a 100+ GB hard drive using one gigantic partition a la the Windows default, you will probably see "rot" sooner or later, as files will eventually get distributed all over the disk. But most distros give you a separate home partition by default, so this doesn't crop up much (I think).

    But yes, Windows accumulates temporary files in the same fashion as a PC accumulates dust. Whereas Linux barely uses temp files for anything. KDE makes fairly heavy use of /tmp and /var/tmp, and usually has < 10 MB total stored in those directories
     
  13. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    10,224
    Ext filesystem already spreads files all over the disk, by design, the way it works. So you won't see any difference.
    Mrk
     
  14. vasa1

    vasa1 Registered Member

    Joined:
    May 1, 2010
    Posts:
    4,417
    Is that correct?
     
  15. Hungry Man

    Hungry Man Registered Member

    Joined:
    May 11, 2011
    Posts:
    9,146
    Many do. It surprised me that Ubuntu did not. I meant to do that this time and separate boot as well. Oh well.
     
  16. Beavenburt

    Beavenburt Registered Member

    Joined:
    Dec 17, 2006
    Posts:
    566
    As others have stated is is overkill but if it makes you happy then meh. I do have to say though I don't like bleachbit. It is downright dangerous and most the things it cleans you could do yourself in the application preferences. For example I set firefox to clear browser cache, history and cookies on exit.
     
  17. moontan

    moontan Registered Member

    Joined:
    Sep 11, 2010
    Posts:
    3,931
    Location:
    Québec
    never had a problem using Bleachbit, either in Windows or Linux.

    i understand you can do most of this stuff from a terminal but i just like using a mouse driven GUI.

    Bleachbit cleans a lot more than just Firefox.
     
  18. Beavenburt

    Beavenburt Registered Member

    Joined:
    Dec 17, 2006
    Posts:
    566
    I'm aware of that. It was just one example amongst many I could have provided.
     
  19. moontan

    moontan Registered Member

    Joined:
    Sep 11, 2010
    Posts:
    3,931
    Location:
    Québec
    on Windows, i have always used tools like CCleaner, Bleachbit etc...
    so i took this way of doing things to Linux.

    if only i could keep my appartement as clean as my machine. lol
     
  20. Wouldn't "spread all over a 10 GB partition" be a bit different than "spread all over a 160 GB partition"?
     
  21. mack_guy911

    mack_guy911 Registered Member

    Joined:
    Mar 21, 2007
    Posts:
    2,677
    i used bleachbit too but no root and with precaution not as deadly like you moontan


    also which image restore you using i wonder :p
     
  22. moontan

    moontan Registered Member

    Joined:
    Sep 11, 2010
    Posts:
    3,931
    Location:
    Québec
    it's all in my sig! :)

    i use Image for DOS cause the disk loads faster on my machine than either IFW or IFL.

    in Bleachbit, i have the Free disk space, Localization and Memory boxes unchecked.
    as BB was warning of potential problems.
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.