PDA

View Full Version : [SOLVED] Removal of old files



xtiano77
February 23rd, 2009, 09:39 PM
Does Linux removes all unnecessary files after an installation, removal, upgrade or update?

snova
February 24th, 2009, 01:49 AM
Does Linux removes all unnecessary files after an installation, removal, upgrade or update?

I suppose it depends on how you define "unnecessary". I can't think of anything in particular, though except:

1) Configuration files. These are left by default when you remove a package, unless you explicitly purge them (apt-get purge <package>).

Also, there is nothing to remove per-user configuration files.

2) The packages themselves are cached, but I don't think that counts... if you want those removed, it's:


apt-get clean

Beyond that, I can't think of anything.

UbuntuNerd
February 24th, 2009, 02:09 AM
you need to install localepurge. This is just a simple script to recover diskspace wasted for unneeded locale files and localized man pages. It will automagically be invoked upon completion of any apt installation run.
also check this GUIDE (http://my.opera.com/ubuntunerd1/blog/2008/12/26/keeping-ubuntu-clean)