locale-gen(8)

locale-gen8

Generate localisation files from templates

Usage

locale-gen [--keep-existing]

Overview

As compiled locales are large, only templates are distributed in the default locales 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).

Options

--keep-existing

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

Files

/etc/locale.gen

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

Releases

12 releases since Debian 3.0 (Woody); the text changed 5 times.

  1. 3.0
  2. 3.1
  3. 4.0
  4. 5.0
  5. 6.0–11
  6. 12–13

--keep-existing since Debian 12 (Bookworm).

--aliases until Debian 3.1 (Sarge); --archive until Debian 3.1 (Sarge); --help until Debian 3.1 (Sarge); --no-archive until Debian 3.1 (Sarge); --purge until Debian 3.1 (Sarge).

From locales 2.41-12+deb13u4 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.