DOKK / manpages / debian 12 / locales / locale-gen.8.en
LOCALE-GEN(8) System Manager's Manual LOCALE-GEN(8)

locale-gengenerate localisation files from templates

locale-gen [--keep-existing]

As compiled locales are large, only templates are distributed in the default package, and only the desired locales are compiled on the target system.

After selecting the locales into /etc/locale.gen (via dpkg package configuration, for example), locale-gen is run to compile them via localedef(1).

Do not remove /usr/lib/locale/locale-archive, only compiling new locales.

/etc/locale.gen
Whitespace-separated newline-delimited locale charset list of locales to build with # start-of-line comments.

locale(1), localedef(1), locale.gen(5)

/usr/share/i18n/SUPPORTED (/usr/local/share/i18n/SUPPORTED) — list of all supported locales on the current system.

The package, which contains all supported locales in compiled form.

May 5, 2022 Debian