环境是RHEL7.6,使用Firefox中文显示如下,需要安装中文支持
挂载iso安装中文支持组件
1)挂载iso
[root@xxx rhel7iso]# mount /root/rhel7iso/rhel-server-7.6-x86_64-dvd.iso /mnt
mount: /dev/loop0 is write-protected, mounting read-only
[root@xxx rhel7iso]# cd /mnt
[root@xxx mnt]# ls
addons EULA GPL isolinux media.repo repodata RPM-GPG-KEY-redhat-release
EFI extra_files.json images LiveOS Packages RPM-GPG-KEY-redhat-beta TRANS.TBL
[root@xxx mnt]#
2)配置yum源
[root@xxx yum.repos.d]# pwd
/etc/yum.repos.d
[root@xxx yum.repos.d]# cat chinese.repo
[CHINESE]
name=CHINESE
baseurl=file:///mnt
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[root@xxx yum.repos.d]#
3)安装中文支持
yum groupinstall "fonts"
说明:安装中文支持 "Chinese Support" 提示没有这个组件,原因是comps.xml没有"Chinese Support"这个组件;解决方法:安装“Fonts”
[root@xxx ~]# find / -name *comps.xml*
/var/cache/yum/x86_64/7Server/base1/gen/comps.xml
/var/cache/yum/x86_64/7Server/base1/a4e2b46586aa556c3b6f814dad5b16db5a669984d66b68e873586cd7c7253301-c7-x86_64-comps.xml.gz
/var/cache/yum/x86_64/7Server/CHINESE/gen/comps.xml
[root@xxx ~]#
[root@xxx ~]# grep "Chinese Support" /var/cache/yum/x86_64/7Server/base1/gen/comps.xml
[root@xxx ~]# grep "Fonts" /var/cache/yum/x86_64/7Server/base1/gen/comps.xml
<name>Fonts</name>
<description>Fonts for rendering text in a variety of languages and scripts.</description>
[root@xxx ~]#
使用 yum groupinstall "fonts" 或 yum groupinstall "Fonts" 都可以
[root@xxx ~]# cat /var/cache/yum/x86_64/7Server/base1/gen/comps.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE comps PUBLIC "-//CentOS//DTD Comps info//EN" "comps.dtd">
<comps>
……
<group>
<id>fonts</id>
<name>Fonts</name>
<name xml:lang="ar">ﺦﻃﻮﻃ</name>
<name xml:lang="as">ফন্টসমূহ</name>
<name xml:lang="bal">ﻑﻮﻨﺗ ﺂﻧ</name>
……
4)安装完成, umount /mnt
参考资料:
CentOs7 无可用"Chinese Support" https://www.cnblogs.com/lideg/p/4286936.html
Centos YUM组安装报错解决 yum grouplist 提示: There is no installed groups file https://blog.csdn.net/qq43748322/article/details/103630858