centos添加语言包

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 查看结果。
原文链接:https://blog.csdn.net/niuxinlong/article/details/103372436

posted @ 2020-04-09 09:11  鞭码形动  阅读(765)  评论(0编辑  收藏  举报