0
点赞
收藏
分享

微信扫一扫

快速汉化RHEL7

思考的鸿毛 2022-02-15 阅读 62


本文档给出快速汉化RHEL7的方法,此方法同样适用于​​CentOS​​7,做汉化操作前,请确保yum源正常。

汉化前:

快速汉化RHEL7_yum源

确保yum源正常

[root@localhost ~]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# ls
redhat.repo rhel7.repo
[root@localhost yum.repos.d]# cat rhel7.repo
[rhel7]
name=rhel7
baseurl=file:///media/cdrom
enabled=1
gpgcheck=0
[root@localhost yum.repos.d]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rhel-root 17G 3.2G 14G 19% /
devtmpfs 473M 0 473M 0% /dev
tmpfs 489M 144K 489M 1% /dev/shm
tmpfs 489M 14M 476M 3% /run
tmpfs 489M 0 489M 0% /sys/fs/cgroup
/dev/sda1 1014M 173M 842M 18% /boot
tmpfs 98M 8.0K 98M 1% /run/user/0
/dev/sr0 3.6G 3.6G 0 100% /media/cdrom

汉化:

安装中文包并修改/etc/locale.conf配置文件

[root@localhost yum.repos.d]# yum list kde*Chinese
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
Available Packages
kde-l10n-Chinese.noarch 4.10.5-2.el7 rhel7
[root@localhost yum.repos.d]# yum install -y kde-l10n-Chinese.noarch
[root@localhost yum.repos.d]# echo LANG=zh_CN.UTF-8 > /etc/locale.conf

汉化后:

重启验证汉化结果

快速汉化RHEL7_yum源_02

快速汉化RHEL7_配置文件_03

快速汉化RHEL7_配置文件_04

汉化成功!

编辑:传棋,审核员:薛颢



举报

相关推荐

0 条评论