HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Tips/Tricks/Mods (http://www.howtoforge.com/forums/forumdisplay.php?f=29)
-   -   What is safe to cleanup? (http://www.howtoforge.com/forums/showthread.php?t=61117)

technoid 24th March 2013 23:54

What is safe to cleanup?
 
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?

markc 1st April 2013 17:19

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?


All times are GMT +2. The time now is 11:53.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.