Debian Admin - Your way to Debian World

September 28, 2006

Remove unnecessary Files in Debian and Ubuntu Using localepurge

by @ 9:18 am. Filed under General

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

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

Tags: , ,

Leave a Reply

Subscribe RSS Feed

subscribe to the Debian Admin RSS feed

Internal links:

Sponsors:



Categories:

Support Debian Admin

Amount $:
Website(Optional):

Sponsors:

Archives:

WidgetBucks - Trend Watch - WidgetBucks.com

Related Links:


WidgetBucks - Trend Watch - WidgetBucks.com

Favourite Sites:

Wordpress Collection
Windows Reference
Ubuntu Geek
DebianHelp
All About Debian Tutorials
Power Electrical
Check Your IP Here
Debian,Ubuntu News
DebCentral
Tuxmachines
Capnkirby
Libervis
Nuxifield
Linux Horizon
Linux Appfinder
Debuntu
GNU/Linux For Everyone
Free Penguin
DebianAdmin is not related to the Debian Project.
This site is copyright © 2006,2007 Debian Admin
All Trademarks are the property of their respective owners.
The contents of this website may not be mirrored or archived without the express written permission of DebianAdmin Site Owner.

DISCLAIMER: All the information, troubleshooting methods, utilities offered in this website is provided AS-IS, without any warranties. Though I strive for perfection, and always test the validity and effectiveness of the troubleshooting content in various systems, I assume no responsibility for your use of these Fixes, Utilities and other troubleshooting advice. The author will not be liable for any special, incidental, consequential or indirect damages due to loss of data or any other reason. All use is completely at your own risk. Changes to the existing content and new additions are made to this website periodically, without notification.
Rodney's Kontera DynamiContext Plugin plugged in.