Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: CCleaner equivalent for Linux?

  1. #1
    Join Date
    Feb 2008
    Location
    Melbourne, Australia
    Beans
    89
    Distro
    Ubuntu 8.04 Hardy Heron

    CCleaner equivalent for Linux?

    Hi,

    Being a Windows user too, I was wondering if there's a program similar to "CCleaner" (on Windows XP) for Linux?

    For those not familiar with it, CCleaner tidies up temp files, logs, caches, the registry, etc.

    Cheers,

    Mike.

  2. #2
    Join Date
    Mar 2008
    Location
    City of Pines
    Beans
    3,585

    Re: CCleaner equivalent for Linux?

    That can be done using the terminal:

    Code:
    sudo apt-get clean
    sudo apt-get autoremove
    Steady movement is more important than speed, much of the time. So long as there is a regular progression of Stimuli to get your mental hooks into, there is room for lateral movement. Once this begins, its rate is a matter of discretion.

  3. #3
    Join Date
    Sep 2007
    Beans
    1,354

    Re: CCleaner equivalent for Linux?

    does that do more than just stray packages? I was under the impression that apt only dealt with packages, not with temp, log, cache and other files that can add up over time.

  4. #4
    Join Date
    Jul 2007
    Location
    London Ontario, Canada
    Beans
    143
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: CCleaner equivalent for Linux?

    click: System>Administration>Synaptic Package Manager

    enter your account password

    in the bottom left corner of the window, you should see a set of buttons. Click 'Status'

    then, in the list above, click "Installed (auto removable)"

    right click all the entries, marking them all for 'complete removal'
    my blog: Plaszer
    The best place to submit ideas for Ubuntu: Ubuntu Brainstorm

  5. #5
    Join Date
    Jul 2008
    Beans
    52

    Re: CCleaner equivalent for Linux?

    great posts guys, thanks i was wondering the same thing myself

    Question
    Quote Originally Posted by Tuxoid View Post
    click: System>Administration>Synaptic Package Manager

    enter your account password

    in the bottom left corner of the window, you should see a set of buttons. Click 'Status'

    then, in the list above, click "Installed (auto removable)"

    right click all the entries, marking them all for 'complete removal'
    im doing this right now i dont have "Installed (auto removable)"

    instead i have
    ALL
    Installed
    Installed (local or obsolete)
    Not installed
    Not installed (residual config)
    Last edited by nycste; July 12th, 2008 at 09:02 AM.

  6. #6
    Join Date
    Mar 2008
    Location
    City of Pines
    Beans
    3,585

    Re: CCleaner equivalent for Linux?

    Quote Originally Posted by jimmy the saint View Post
    does that do more than just stray packages? I was under the impression that apt only dealt with packages, not with temp, log, cache and other files that can add up over time.
    The apt-get GUI utility does NOT deal with temp files, as in files located on your /tmp directory (w/c is actually removed whenever you logout/reboot/shutdown your computer) and log files, it only deals with the cache files location on your /var/cache/apt/archives directory.

    Additional info:

    The apt-get clean option of apt-get removes everything except lock files from /var/cache/apt/archives/ and /var/cache/apt/archives/partial/. Thus, if you need to reinstall a package APT should retrieve it again.

    The clean option of apt-get deletes all your downloaded cache located at /var/cache/apt/archives.

    The autoclean option of apt-get removes only package files that can no longer be downloaded.
    Steady movement is more important than speed, much of the time. So long as there is a regular progression of Stimuli to get your mental hooks into, there is room for lateral movement. Once this begins, its rate is a matter of discretion.

  7. #7
    Join Date
    Apr 2005
    Location
    Finland/UK
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: CCleaner equivalent for Linux?

    Quote Originally Posted by jimmy the saint View Post
    does that do more than just stray packages? I was under the impression that apt only dealt with packages, not with temp, log, cache and other files that can add up over time.
    Temp files and caches are cleared automatically by the system. Logs are rotated automatically, removing old log files to make room for new ones. And there is no regsitry so there's no need to clean one..

    Apart from Apt's cached files there really isn't much to clean.

  8. #8
    Join Date
    Jan 2008
    Beans
    4,757

    Re: CCleaner equivalent for Linux?

    +1 mcduck

    Although I see some rc packagages installed on the OP's system.

    When you uninstall packages, make sure you purge them

    Run this
    Code:
    export PACKAGES=$(dpkg -l | awk '{if ($1 == "rc") print $2" "}' | tr -d '\n')
    [ -n "$PACKAGES" ] && sudo aptitude purge $PACKAGES
    If nothing happens, you are free from left over residual config.

    [EDIT]
    Also, consider yourself lucky that hardy has fixed all temp files in your $HOME folder from overflowing too!
    In Gutsy, it wasn't unusual to see your .thumbnails cache storing 300+MB of images.
    So there is even less to worry about now too...

    Regards
    Iain
    Last edited by ibuclaw; July 12th, 2008 at 09:42 AM.

  9. #9
    Join Date
    Feb 2008
    Location
    United Kingdom
    Beans
    1,108
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: CCleaner equivalent for Linux?

    Quote Originally Posted by nycste View Post
    great posts guys, thanks i was wondering the same thing myself

    Question


    im doing this right now i dont have "Installed (auto removable)"

    instead i have
    ALL
    Installed
    Installed (local or obsolete)
    Not installed
    Not installed (residual config)
    Installed (local or obsolete) is you installing a .deb which is not in the Repository.
    Not installed (residual config) is where you have uninstalled something but there are still configuration files somewhere.
    Right click that package in Synaptic, and chose Mark for a complete removal. that will sort that problem

    Installed (auto removable) is where a certain package has no meaning to be installed. Nothing is needing that package. Sometimes they are left over when uninstalling a program.
    Just remove them, its safe to

    HP Pavilion DV3505ea Laptop: Intel Core 2 Duo T5800 @ 2.0Ghz - 2GB RAM - 160GB HDD - nVidia GeForce 9300M GS - Intel 5100AGN Wireless

  10. #10
    Join Date
    Jul 2008
    Beans
    52

    Re: CCleaner equivalent for Linux?

    Quote Originally Posted by Tom--d View Post
    Installed (local or obsolete) is you installing a .deb which is not in the Repository.
    Not installed (residual config) is where you have uninstalled something but there are still configuration files somewhere.
    Right click that package in Synaptic, and chose Mark for a complete removal. that will sort that problem

    Installed (auto removable) is where a certain package has no meaning to be installed. Nothing is needing that package. Sometimes they are left over when uninstalling a program.
    Just remove them, its safe to
    thx but i cannot right click any packages in "not installed" there are like 100 things inside this section, if i right click an actual file name my only options are "mark for installation" and "properties"

    i did however attempt to remove a virtualbox entry in not installed (residual config) but i got an error trying to do so the error is

    "E: virtualbox: subprocess post-removal script returned error exit status 1"

    thx for any help

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •