topic title: Too many locales?
Posts: 12
Francesco
Joined: 03 Sep 2015
#1
Hello everyone,

i've just updated antix via a dist-upgrade and i've noticed that it took a lot of time generating locales.

Why so many locales are generated?

After doing that, i've run

Code: Select all

#dpkg-reconfigure locales
And choosed only a few (it_IT.UTF-8, en_GB.UTF, and en_US.UTF8). Should be enough.

Thank you.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#2
Francesco wrote:Hello everyone,

i've just updated antix via a dist-upgrade and i've noticed that it took a lot of time generating locales.

Why so many locales are generated?

After doing that, i've run

#dpkg-reconfigure locales

And choosed only a few (it_IT.UTF-8, en_GB.UTF, and en_US.UTF8). Should be enought.

Thank you.

Because we aim to support as many languages ootb as possible; installed and running live.
One person's 'should be enough' is not complete for another. I bet you would not be happy if Italian was not one of the included locales, right?
Posts: 850
fatmac
Joined: 26 Jul 2012
#3
I have often wondered if there was a simple way to permanently get rid of those that the user doesn't need.

Sort of like have a script that checks what you have set, then remove all the others, making a note somewhere so that they don't get re installed at an upgrade.

Probably possible, but maybe too much effort?
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#4
@fatmac

Been dist-upgrading for years and no problemo with removed locales being re-installed after dpkg-reconfigure locales run on my gear.
Posts: 1,445
skidoo
Joined: 09 Feb 2012
#5
"Why so many locales are generated?" is a reasonable question from anyone who has previously only installed via netinstall CD
(wherein the installer script asks locale(s) choice in advance, performs `dpkg-reconfigure locales` and installs localpurge prior to installing other packages)
script that checks what you have set, then remove all the others
that's exactly what the"localizations" option within Bleachbit is/does
~~ runs a python script to selectively rm directories containing locale-specific language files
making a note somewhere so that they don't get re installed at an upgrade.
sudo apt-get install localepurge
localpurge adds a dkpg post-install hook ~~ so that during each package installation or upgrade operation, any extraneous language files installed by a package are rm'ed

============

A while back when I checked (antiX 15?), on an en_US.utf-8 -only system, the extraneous language files preinstalled in"antiX full" amounted to 22,000+ files (310Mb size on disk, adding @90Mb to the size of a snapshot ISO). FWIW, several non-standard paths are missed (overlooked) by bleachbit + localepurge. I tracked 'em down, and wrote a custom cleanup script to handle the remainders (21Mb+ or so) from paths like /usr/share/perl/5.18.1/Unicode/Collate/*
Posts: 850
fatmac
Joined: 26 Jul 2012
#6
Seems there is. __{{emoticon}}__

I just never looked too deeply into it.

Perhaps it could be more prominent?

(Personally, I have never bothered to actually remove the extra locales.)