update-locale (8) Linux Manual Page
update-locale – Modify global locale settings
Syntax
update-locale [OPTIONS] [var=locale | var] […]
Description
This program can be called by maintainer scripts when Debian packages are installed or removed, it updates the /etc/default/locale file to reflect changes in system configuration related to global locale settings. When variables have no value assigned, they are removed from the locale file. Some basic checks are performed to ensure that requested settings are valid.
Options
–help- Display an help message and exit.
–reset- Variables which are not set on command-line are cleared out.
–locale-fileFILE- Define file containing locale variables. (Default:
/etc/default/locale) –no-checks- Do not perform sanity checks on locale variables.
Example
The commandupdate-locale LANG=en_CA.UTF-8 LANGUAGEsetsLANGtoen_CA.UTF-8and removes definitions forLANGUAGE.
Files
/etc/default/locale- File where global locale settings are stored.
Author
Denis Barbier <barbier [at] linuxfr.org>
See Also
locale-gen(8), locale(1)
