23
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Red Hat Enterprise Linux 8 に日本語ロケールを入れる

Posted at

前提

Red Hat Enterprise Linux 8 には日本語ロケールがなかったので、日本語ロケールを入れる

[root@ip-x-x-x-x ~]# locale -a   
C
C.utf8
POSIX
en_AG
en_AU
en_AU.utf8
en_BW
en_BW.utf8
en_CA
en_CA.utf8
en_DK
en_DK.utf8
en_GB
en_GB.iso885915
en_GB.utf8
en_HK
en_HK.utf8
en_IE
en_IE.utf8
en_IE@euro
en_IL
en_IN
en_NG
en_NZ
en_NZ.utf8
en_PH
en_PH.utf8
en_SC.utf8
en_SG
en_SG.utf8
en_US
en_US.iso885915
en_US.utf8
en_ZA
en_ZA.utf8
en_ZM
en_ZW
en_ZW.utf8

探す

[root@ip-x-x-x-x ~]# yum search locale ja
Failed to set locale, defaulting to C
Last metadata expiration check: 0:36:09 ago on Wed Sep 11 11:36:11 2019.
======================================== Summary & Name Matched: ja, locale =========================================
glibc-langpack-ja.x86_64 : Locale data for ja

あった

入れる

yum install glibc-langpack-ja

結果

[root@ip-x-x-x-x ~]# locale -a
C
C.utf8
POSIX
en_AG
en_AU
en_AU.utf8
en_BW
en_BW.utf8
en_CA
en_CA.utf8
en_DK
en_DK.utf8
en_GB
en_GB.iso885915
en_GB.utf8
en_HK
en_HK.utf8
en_IE
en_IE.utf8
en_IE@euro
en_IL
en_IN
en_NG
en_NZ
en_NZ.utf8
en_PH
en_PH.utf8
en_SC.utf8
en_SG
en_SG.utf8
en_US
en_US.iso885915
en_US.utf8
en_ZA
en_ZA.utf8
en_ZM
en_ZW
en_ZW.utf8
ja_JP.eucjp
ja_JP.utf8

増えた

ついでに設定も変える

[root@ip-10-0-0-9 ~]# localectl set-locale LANG=ja_JP.utf8
[root@ip-10-0-0-9 ~]# localectl set-keymap jp106
[root@ip-10-0-0-9 ~]# localectl status
   System Locale: LANG=ja_JP.utf8
       VC Keymap: jp106
      X11 Layout: jp
       X11 Model: jp106
     X11 Options: terminate:ctrl_alt_bksp

結論

無事に変更できた
なかなか情報がなく大変だった

23
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
23
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?