centos8添加中文语言包

系统:centos8

通过docker pull的centos:lastest, 发现是centos8.

[root@docker-desktop activity]# locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
C.utf8
POSIX

不支持中文包,按照centos7的方式安装:yum install kde-l10n-Chinese -y
提示没有 kde-l10n-Chinese
通过yum search了一下
yum search langpacks
发现简体中文的安装包是:langpacks-zh_CN.noarch
直接通过命令: yum install langpacks-zh_CN.noarch
然后通过命令:locale -a 查看结果。

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐