Configuring System Language (Locale) and Keyboard Settings
System-wide preferences for language and keyboard are stored in the locale configuration file (/etc/locale.conf
). You can query and change these settings as needed using localectl
command. Note that the systemd
process reads the locale configuration file at boot and applies these settings to every system-wide service, user interface, and user profile, unless they're overridden by other programs or users. For more information about configuring these system-wide settings, see:
Note:
System-wide preferences for language and keyboard are also configurable during installation. For details on how to configure these settings at installation, see Oracle Linux 10: Installing Oracle Linux.Changing the Language Setting
The system locale language setting defines the language in which text appears in the
Linux user interfaces (text-based and graphical). For more information on how to
configure language locale options on the system, see the locale
manual page.
To query and change the language setting on the system, follow these steps:
Installing Language Locales Individually
A langpack is a metapackage that consists of dependencies that provide support for a specified language. The dependencies include packages for locales, fonts, and other functionality for using a language on a system.
For a particular language, one of the dependencies the langpack installs is
glibc-langpack-<locale_code>
. To reduce storage space
required for languages, you can choose to install only the individual glibc locale
langpack packages (glibc-langpack-<locale_code>
).
Changing the Keyboard Layout
The keyboard layout settings enable you to specify a keymap locale for the Linux user
interfaces (text-based and graphical). Keymaps are managed using the
localectl
command. For more information on how to use the
localectl
command line utility to change keyboard system
settings, see thelocalectl
manual page.
To query and change the keyboard layout settings on the system, follow these steps: