linux poison RSS
linux poison Email

Optimize the disk space by removing unnecessary locale data - localepurge

The package localepurge (version 0.5.9) is just a simple script to recover disk space wasted for unneeded locale files and localized man pages (interpret - language files). After first use, it will automatically be invoked upon completion of any apt installation run.

Note: This tool is a hack which is *not* integrated with Debian based package management systems and therefore is not for the faint of heart. This program interferes with the Debian based package management and can provoke strange, but usually harmless, behavior of programs related with apt/dpkg like dpkg-repack, debsums, reportbug, etc. Responsibility for its usage and possible breakage of your system therefore lies in the sysadmin's (your) hands.

However, this very easy and simple script can and will save you a few hundred megabytes of hard drive space.

Each and every application or package that you install on your system usually contain many locales (language files) which are not the language you understand or use daily. these locales data are installed by default and can takes up hundreds of megabytes of hard drive space, depending on which application or package you install.

so why let these useless data files reside on our system? we do not need them so let's purge them:

From a terminal, type: sudo apt-get install localepurge

During the install, you will receive a prompt for your language. The language selections are in two digit codes, (for example: “en” for English.) scroll down to your language and once it's highlighted, click the “space bar” to select it. Note: You may see several entries for your language, you only need to select the top most entry.)

Once localepurge has finished installing, from the same terminal, type: sudo localepurge

It will run and inform you how much space it just saved you.

That's it, one single line to install localepurge. After the first run, it will automatically remove unnecessary locale data files whenever you install new applications or packages without your intervention.


0 comments:

Post a Comment

Related Posts with Thumbnails