How to install other locales than en_US?

asked 2016-12-14 13:47:57 +0000

huygens gravatar image

During installation of CentOS 7 Atomic Host, I selected English Great Britain for the locale. It is also correctly configured. But the enGB locale are not installed! There is only enUS.

On standard CentOS7, en_GB is provided by glibc-common package (at least that's what my rpm -q --whatprovides command is reporting). Strangely that same package is also installed on Atomic Host but not all locales! So I can't even install the RPM with the missing locale if I wanted to.

The problem is not limited to SSH connections which are configured on the server side to support locale variables (in the /etc/ssh/sshd_config on CentOS 7 AH it is set-up to "propagate" these environment and not to block them...). It is also when logging-in locally on the baremetal server. Because the installation allowed to select different locale, the locale are set as selected during installation in the relevant system files (e.g. /etc/locale.conf).

Is there a robust way to add the enGB locale? Does copying the enGB folder under /usr/share/locale/en_GB is enough? Would it break upgrade process later?

PS: I understand that limiting locales save space. But as a non-US person, I'm would not agree that the only locale is US, when displaying date they have the month and day in the wrong way ;-)

edit retag flag offensive close merge delete


+1 for enGB support or instructions on howto add

alrighttheresham ( 2017-01-25 15:12:52 +0000 )edit