What is safe to cleanup?

Discussion in 'Tips/Tricks/Mods' started by technoid, Mar 24, 2013.

  1. technoid

    technoid New Member

    What files are safe to clean up after your server has been running for awhile?

    I know about removing old emails from .Trash/.Junk. I also know that old log files can be downloaded and then removed. What about things like the apt cache files?

    Are there other files that are no longer being used and are safe to remove?
     
  2. markc

    markc Member

    If you just want to be "tidy" then I'd install deborphan on a Debian/Ubuntu system and keep using it until all packages without dependents are removed and sure, apt-get clean, will remove all installed and cached packages.

    If you are desperate for a bit extra space then there are some more extreme things you could do like "rm -rf /usr/sahre/doc/*" which will reclaim ~40Mb and locales could be removed if you only need English and there is another 60Mb. Most font packages could go and save yet another 20Mb. If you built jailkit then gcc and friends could go and arguably should be removed from a server anyway.

    A post install cleanup script with a couple of levels of intensity would be an interesting project. Perhaps someone already has such a thing?
     

Share This Page