LOCALE-GEN(8)
Hey bestie! ๐ Here's the LOCALE-GEN(8) page from the System Manager's Manual, all tea, no filler. โจ
โจ NAME โจ
locale-gen โ generate localisation files from templates ๐ธ
๐ง SYNOPSIS ๐ง
locale-gen [--keep-existing]
๐ DESCRIPTION ๐
okay so compiled locales are huge ๐ญ which is why only the templates get shipped in the default locales package, and only the locales you actually want get compiled on your own machine. lowkey genius.
after you pick your locales in /etc/locale.gen (through dpkg package configuration, for example), you run locale-gen to compile them with localedef(1). it's giving tidy, no cap. ๐ซถ
๐ฆ OPTIONS ๐ฆ
--keep-existingโ don't delete/usr/lib/locale/locale-archive. it only compiles the brand new locales and leaves the rest alone. โจ
๐ FILES ๐
/etc/locale.genโ the main list ๐ It's a whitespace-separated, newline-delimited list of locale charset pairs thatlocale-genbuilds. Lines starting with#are comments, so you can leave yourself notes./var/lib/locales/supported.dโ a directory full oflocale.gensnippets that language-pack packages drop in ๐ Please don't hand-edit these, bestie, they get overwritten on package upgrades. ๐
๐ SEE ALSO ๐
locale(1), localedef(1), locale.gen(5) ๐
/usr/share/i18n/SUPPORTED(or/usr/local/share/i18n/SUPPORTED) โ the list of every supported locale on the current system. main character energy ๐- The
locales-allpackage โ has every supported locale already compiled, so you don't have to do it yourself. iconic. ๐ฅ
Sign-off: this page is from Debian, dated May 5, 2022, and it's the LOCALE-GEN(8) manual. periodt! ๐๐ฆโจ
๐ฆ where this page comes from
- ubuntu noble: locales 2.39-0ubuntu8
- ubuntu noble: locales 2.39-0ubuntu8.9
- ubuntu questing: locales 2.42-0ubuntu3
- ubuntu questing: locales 2.42-0ubuntu3.1 ยท LGPL-2.1-or-later
- ubuntu resolute: locales 2.43-2ubuntu2 ยท LGPL-2.1-or-later
- ubuntu resolute: locales 2.43-2ubuntu2.4 ยท LGPL-2.1-or-later
- ubuntu stonking: locales 2.44-1ubuntu2 ยท LGPL-2.1-or-later
- ๐ the page's license: 0BSD
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms