var/lib/locales/supported.d/
lots of lang
rm unneeded
/etc/default/locale
update-locale LANG=en_US.UTF-8
/usr/share/i18n/SUPPORTED
cat /etc/locale.gen
sudo locale-gen
sudo locale-gen --purge en_US.UTF-8
locale -a
localedef --list-archive
localectl list-locales
sudo nano
/var/lib/locales/supported.d/en
en_HK.UTF-8 UTF-8
en_DK.UTF-8 UTF-8
en_IN UTF-8
en_IL UTF-8
en_ZM UTF-8
en_ZW.UTF-8 UTF-8
en_NZ.UTF-8 UTF-8
en_PH.UTF-8 UTF-8
en_NG UTF-8
en_US.UTF-8 UTF-8
en_GB.UTF-8 UTF-8
en_AU.UTF-8 UTF-8
en_SG.UTF-8 UTF-8
en_BW.UTF-8 UTF-8
en_AG UTF-8
en_ZA.UTF-8 UTF-8
en_CA.UTF-8 UTF-8
en_IE.UTF-8 UTF-8
comment or remove unnecessary lines
ls /var/lib/locales/supported.d/
en (rip other lang)
sudo locale-a
Generating locales (this might take a while)...
en_US.UTF-8... done
Generation complete.
sudo dpkg-reconfigure locales (does same locale -a)
Generating locales (this might take a while)...
en_US.UTF-8... done
Generation complete.
##finally
src::
https://askubuntu.com/questions/1154895/how-to-remove-system-locales
https://wiki.archlinux.org/index.php/locale
https://www.linuxquestions.org/questions/blog/bittner-195120/remove-unwanted-locales-on-ubuntu-debian-3281/
Comments
Post a Comment