LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

eselect-locale

system-wide locale and language configuration

TLDR

List available locales
$ eselect locale list
copy
Set the LANG environment variable by name
$ eselect locale set [en_US.utf8]
copy
Set the LANG environment variable by index number
$ eselect locale set [4]
copy
Display current LANG value
$ eselect locale show
copy

SYNOPSIS

eselect locale action [options]

DESCRIPTION

eselect locale manages the LANG environment variable on Gentoo systems. It sets the system-wide language and locale by modifying /etc/env.d/02locale. After changes, run `env-update && source /etc/profile` to apply.Part of the eselect framework for system configuration.

PARAMETERS

list

List available locales.
set target
Set LANG to specified locale (by name or index number).
show
Display current LANG setting.

CAVEATS

Gentoo Linux specific. Locales must be generated first with locale-gen. Changes require running env-update and re-sourcing the profile or re-login to take effect.

SEE ALSO

Copied to clipboard
Kai