Sep 282006
 

Sponsored Link

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.

Please note, that this tool is a hack which is *not* integrated with Debian's package management system and therefore
is not for the faint of heart. This program interferes with the Debian package management and does provoke strange, but
usually harmless, behaviour 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.

Please definitely do abstain from reporting any such bugs blaming localepurge if you break your system by using it. If
you don't know what you are doing and can't handle any resulting breakage on your own then please simply don't use this
package.

Install localepurge in debian

#apt-get install localepurge

After installing anything with apt-get install, localepurge will remove all translation files and translated manpages in languages you cannot read.

If you want to configure localepurge you need to edit /etc/locale.nopurge

This can save you several megabytes of disk space, depending on the packages you have installed.

Example:-

I am trying to install dicus using apt-get

#apt-get install discus

after end of this installation you can see something like below

localepurge: Disk space freed in /usr/share/locale: 41860K

Install Localepurge in Ubuntu

$sudo apt-get install localepurge

If you want to know more about localepurge options check localepurge man page

Sponsored Link

 Posted by at 9:18 am

  One Response to “Remove unnecessary Files in Debian and Ubuntu Using localepurge”

  1. Keep in mind the following Debian package description for localepurge:

    “Please note, that this tool is a hack which is *not* integrated with Debian’s package management system and therefore is not for the faint of heart. This program interferes with the Debian package management and does provoke strange, but usually harmless, behaviour of programs related with apt/dpkg like dpkg-repack, debsums, reportbug, etc. ”

    From: http://packages.debian.org/wheezy/localepurge

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>