[Fedora-livecd-list] strip down languages from /usr/share/locale
Alex Magaz
alexm at asic.udl.es
Thu Jan 26 10:26:20 UTC 2006
Hi,
I've been adapting a script from the debian package localepurge to work as
post install script. This script purges all languages that doesn't appear in
the locale.nopurge file. It also gives the option to purge man pages
uncommenting MANDELETE option.
It works simply copying the three files into the post_install_scripts
directory (rember to give execution permissions to the script :). Then
customize locale.nopurge to your needs.
I've tried it and seems to work well, but have not made al lot of testing and
may be there's still some issue.
The source package can be downloaded from
http://ftp.debian.org/debian/pool/main/l/localepurge/localepurge_0.4.1.tar.gz
I have some questions about disk saving. What about the files
under /usr/lib/locale? Are they necessary? In my system it takes up around
100M of disk space. And /usr/share/doc? Apart from HTML, can the other
directories be safely deleted?
Cheers,
Alex Magaz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: localelist
Type: application/octet-stream
Size: 1850 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/livecd/attachments/20060126/284227dd/attachment.obj
-------------- next part --------------
####################################################
# This is the configuration file for localepurge(8).
#
# DO NOT EDIT!
#
# localepurge(8) uses debconf for storing all its
# configuration. Manual entries to this file will be
# irreversibly lost after upgrade or reinstallation
# of localepurge. Configuration should only be done
# using the command
#
# dpkg-reconfigure localepurge
#
####################################################
####################################################
# Uncommenting this string enables removal of localized
# man pages based on the configuration information for
# locale files defined below:
MANDELETE
####################################################
# Uncommenting this string causes localepurge to simply delete
# locales which have newly appeared on the system without
# bothering you about it:
DONTBOTHERNEWLOCALE
####################################################
# Uncommenting this string enables display of freed disk
# space if localepurge has purged any superfluous data:
SHOWFREEDSPACE
#####################################################
# Commenting out this string enables faster but less
# accurate calculation of freed disk space:
#QUICKNDIRTYCALC
#####################################################
# Commenting out this string disables verbose output:
#VERBOSE
#####################################################
# Following locales won't be deleted from this system
# after package installations done with apt-get(8):
ca
ca_ES
ca_ES at euro
en
en_US
en_US.UTF-8
es
es_ES
es_ES at euro
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 08localepurge.sh
Type: application/x-shellscript
Size: 6786 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/livecd/attachments/20060126/284227dd/attachment.bin
More information about the livecd
mailing list