Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: How to delete unused files

  1. #1
    Join Date
    Apr 2012
    Beans
    12

    How to delete unused files

    How do I delete unused files that remain after running the Update Manager. I would appreciate your assistance. Thank you.

  2. #2
    Join Date
    Sep 2007
    Location
    England / U.S.
    Beans
    277
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: How to delete unused files

    Code:
    sudo apt-get update
    Code:
    sudo apt-get autoremove
    Code:
    sudo apt-get autoclean
    or instead of autoclean
    Code:
    sudo apt-get clean
    for more thorough cleaning.
    Linux is not windows // Ubuntu (Quantal:12.10) Guide
    Use descriptive thread titles // Linux... is... not... windows // OSX... is... not... Linux

  3. #3
    Join Date
    Sep 2012
    Beans
    4

    Re: How to delete unused files

    The autoclean freed me up a little bit of space, there were still some files left over from old packages which I had to find and rm -rf myself, is there a nice way to pinpoint folders which have more than a threshold of space usage?

  4. #4
    ibjsb4 is offline Ubuntu addict and loving it
    Join Date
    Sep 2012
    Beans
    4,996

    Re: How to delete unused files

    Give "Bleachbit" a try, its in the software center.

  5. #5
    Join Date
    Nov 2005
    Location
    Lincolnshire, UK
    Beans
    1,461
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How to delete unused files

    Quote Originally Posted by Jibbals View Post
    The autoclean freed me up a little bit of space, there were still some files left over from old packages which I had to find and rm -rf myself, is there a nice way to pinpoint folders which have more than a threshold of space usage?
    Unless you are really short of disk space I recommend you do not do this as the space taken up by "unused" files from old packages is generally insignificant.

    Your post count (and question!) implies you are a "newbie" to Linux and, as such, you are very likely to cause major damage to your system by using commands such as "rm -rf". The "cleaning" utilites can also cause damage if not used correctly. My advice is just to stay clear of these things - you generally don't need them.

  6. #6
    Join Date
    Jul 2006
    Location
    Castrum, Germania Secunda
    Beans
    1,071

    Re: How to delete unused files

    As Zill says. Linux hardly pollutes. Avoid Bleachbit and their lot.

    Should you wish to do some cleaning anyway, then these are safe cleaning actions:
    https://sites.google.com/site/easyli...sproject/clean

    Good luck!

  7. #7
    Join Date
    Dec 2012
    Location
    USA
    Beans
    185
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How to delete unused files

    Ubuntu Tweak has a Janitor function for cleaning out unneeded files plus many other useful features.

    http://ubuntu-tweak.com/

    I have used it several time with no ill effect.

    I would recommend leaving the Old Kernel files.

  8. #8
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: How to delete unused files

    Please tell me how you know they are unused. I see Update Manager removing files/packages that have been replaced by newer packages.

    Regards
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


  9. #9
    Join Date
    Apr 2012
    Beans
    12

    Re: How to delete unused files

    I used the site "How to clean up Ubuntu" : https://sites.google.com/site/easyli...C-The-registry. I Used the "Remove unused remains of uninstalled software" procedure. That was about three days ago, and still the old kernals remain. I am still running version 10.04 which is an updated version. Is this process something that I have to wait on, and if so how long? Thank you.
    Last edited by alcla; May 27th, 2013 at 12:19 AM.

  10. #10
    Join Date
    Aug 2011
    Location
    51.8° N 5.8° E
    Beans
    3,580
    Distro
    Xubuntu 17.04 Zesty Zapus

    Re: How to delete unused files

    That procedure will get rid of remaining configuration files of removed packages.

    Old kernels are kept, so that you have something to fall back on in case the new kernel unexpectedly doesn't work with your hardware. You can remove them by removing the packages linux-image-<some version> using synaptic. It's best to keep one old kernel at all times. This is explained under point 4 (Remove old kernels) in the link you gave.

    Unless you use the server edition, 10.04 is no longer updated. Consider upgrading to 12.04 LTS.

Page 1 of 2 12 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
  •