from small one page howto to huge articles all in one place
May, 25th 2007:
April, 26th 2007:
Apr, 10th. 2007:
| | You are here: Tips&Tricks
Specifying only needed locales
The locales a user can choose from are built by the glibc.
Usually all available locales starting from aa_DJ (Afar locale for Djibouti) over en_US (English locale for the USA) to zu_ZA.utf8 (Zulu locale for South Africa) will be installed.
Unless you're working at the UN and administer a central server for all member states, it is difficult to conceive why you would need a system where all of these locales are installed. This week's tip was written with all those of you in mind who'd like to save 90 percent of the space occupied by locales in their system, by limiting the number of installed locales to the bare minimum.
Ever since sys-libs/glibc-184.108.40.20640619-r2 has been in Portage, a USE-flag called userlocales was provided to make sure only those locales mentioned in /etc/locales.build are to be built and installed. As a side-effect, this also leads to a much faster emerge of glibc, obviously.
Code Listing 1: Activate the userlocales USE flag especially for glibc
echo "sys-libs/glibc userlocales" >> /etc/portage/package.use
Now specify the locales you want to be able to use:
Code Listing 2: nano -w /etc/locales.build
The format of the locales is described in the file itself.
For further information about locale-handling make sure you read our Gentoo Linux Localization Guide.
Another interesting tool is app-admin/localepurge which can clean out any installed man-page or info-file in languages you don't need on your system. You should read the man-page to localepurge in any case, and configure languages you intend to keep in /etc/locale.nopurge.
By the way, if you want to prohibit the installation of all man-pages, info-files or documentation, for example when space on your disk is severely limited, you can add noman, nodoc and/or noinfo to FEATURES in your /etc/make.conf.
rate this article:
current rating: average rating: 1.3 (3 votes) (1=very good 6=terrible)
Please read "Why adblockers are bad".
Trace My Cash
Wenn Sie sich schon immer mal gefragt haben, wo eigentlich Ihr geliebtes Bargeld geblieben ist, finden Sie hier vielleicht die Antwort.
Other free services
New Packages - as