LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Cleanup tool for Debian? (https://www.linuxquestions.org/questions/debian-26/cleanup-tool-for-debian-556022/)

Armane 05-23-2007 05:08 AM

Cleanup tool for Debian?
 
Hello

I was wondering if there is a known tool/program that can help to minimize a installation of unnecessary files/programs and logs that is just taking space on the hd?

Best regards
Mattias

Samotnik 05-23-2007 05:34 AM

When installing Debian base system you will get an absolutely minimal system able to run by itself. Then with apt you can add anything you want without any unnecessary program.

IsaacKuo 05-23-2007 07:15 AM

Even so, there are a lot of things you can do to clean things up. Running "apt-get clean", for example, will clean up the cached .deb package files (which aren't needed after the package is installed). There's also some package which will apparently clean up a LOT of space by removing the locale stuff for languages other than your own.

I don't know of any overall cleanup tool, but I imagine the best thing would be a bash script to do it. That way, you could customize the cleanup script easily--adding or removing bits as desired.

farslayer 05-23-2007 07:21 AM

you should have logrotate or something similar installed to automatically clean up your log files..

localepurge, someone just pointed this out recently.. saves quite a bit of space. What do I need help files in German, dutch, spanish, etc.. this cleans them out.
Quote:

user@it-etch:~$ aptitude search localepurge
p localepurge - Automagically remove unnecessary locale data

HappyTux 05-23-2007 08:04 AM

Running deborphan and debfoster for excess packages and if the machine is not on very early in the morning then install anacron so the cron jobs that would be run at that time (like rotating and deleting log files) are checked and run when you turn your machine on.


All times are GMT -5. The time now is 01:26 PM.