samedi 28 février 2015

Is it possible to limit the set of English locales on a system?


On Debian and Ubuntu is it possible to limit the locales which have to be configured?


I know that /var/lib/locales/supported.d/local and /var/lib/locales/supported.d/en govern which locales are being configured, but short of manually modifying it more or less after the fact (i.e. after an apt-get dist-upgrade) I haven't found any method to limit it to en_US.* locales as desired.


So whenever the packages language-pack-en and language-pack-en-base gets touched (and they usually get updated in lockstep, from what I saw), I get something like this:



Setting up language-pack-en (1:14.04+20150219) ...
Setting up language-pack-en-base (1:14.04+20150219) ...
Generating locales...
en_AG.UTF-8... done
en_AU.UTF-8... done
en_BW.UTF-8... done
en_CA.UTF-8... done
en_DK.UTF-8... done
en_GB.UTF-8... done
en_HK.UTF-8... done
en_IE.UTF-8... done
en_IN.UTF-8... done
en_NG.UTF-8... done
en_NZ.UTF-8... done
en_PH.UTF-8... done
en_SG.UTF-8... done
en_US.UTF-8... up-to-date
en_ZA.UTF-8... done
en_ZM.UTF-8... done
en_ZW.UTF-8... done
Generation complete.


Unfortunately some upgrades seem to override those two aforementioned files and thus reset modifications I've made to them.


What'd like to see instead is:



Setting up language-pack-en (1:14.04+20150219) ...
Setting up language-pack-en-base (1:14.04+20150219) ...
Generating locales...
en_US.UTF-8... up-to-date
Generation complete.


How can I achieve that?



Aucun commentaire:

Enregistrer un commentaire