UPDATE-LOCALE(8)
๐ UPDATE-LOCALE(8) ๐
okay so welcome to the System Manager's Manual ๐ this is the page for update-locale, and it's literally the tool for keeping your global locale settings in check โจ
๐ง NAME
update-locale โ Modify global locale settings ๐ธ
๐ SYNTAX
update-locale [OPTIONS] [var=locale | var] [...]
โจ DESCRIPTION
okay so this program is bestie-level useful ๐ซถ maintainer scripts can call it when Debian packages get installed or removed, and it updates the /etc/locale.conf file so it matches what's going on with your system's global locale settings ๐
when a variable shows up with no value assigned, it gets removed from the locale file ๐ and before anything gets written, it does some basic checks to make sure the settings you asked for are actually valid. no cap, it's giving responsible ๐
๐ OPTIONS
--helpโ shows you a help message and then exits ๐--resetโ any variables you didn't set on the command line get cleared out ๐งน this one's a whole glow-up, so be careful with it ๐ญ--locale-file FILEโ lets you pick the file that holds your locale variables ๐ฆ if you don't pick one, it defaults to/etc/locale.conf--no-checksโ skips the sanity checks on your locale variables ๐ฅ you do you, but the checks are there for a reason
๐ EXAMPLE
the vibe here is so clean ๐ this command:
update-locale LANG=en_CA.UTF-8 LANGUAGE
sets LANG to en_CA.UTF-8 and removes the definition for LANGUAGE. iconic behaviour, periodt โจ
๐ FILES
/etc/locale.confโ the file where your global locale settings are stored ๐ท
๐ AUTHOR
this page was written by Denis Barbier <barbier@linuxfr.org> ๐ซถ
๐ฆ SEE ALSO
locale-gen(8), locale(1) ๐
ngl that's the whole page, bestie ๐ this was the Debian GNU/Linux manual, dated April 2006, with UPDATE-LOCALE(8) as the footer, so now you're fully caught up ๐ โจ
๐ฆ where this page comes from
- debian trixie: locales 2.41-12+deb13u4 ยท LGPL-2.1-or-later
- 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
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms