1、备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2、下载新的CentOS-Base.repo 到/etc/yum.repos.d/
CentOS 5
wget -O /etc/yum.repos.d/CentOS-Base.repo http://10.16.172.71/repo/centos/centos5.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo http://10.16.172.71/repo/centos/centos5.repo
CentOS 6
wget -O /etc/yum.repos.d/CentOS-Base.repo http://10.16.172.71/repo/centos/centos6.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo http://10.16.172.71/repo/centos/centos6.repo
CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo http://10.16.172.71/repo/centos/centos7.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo http://10.16.172.71/repo/centos/centos7.repo
CentOS 8
wget -O /etc/yum.repos.d/CentOS-Base.repo http://10.16.172.71/repo/centos/centos8.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo http://10.16.172.71/repo/centos/centos8.repo
ALinux17.01 也可以直接使用centos7的yum源
wget -O /etc/yum.repos.d/alinux-17.01.repo http://10.16.172.71/repo/alinux/alinux-17.01.repo
或者
curl -o /etc/yum.repos.d/alinux-17.01.repo http://10.16.172.71/repo/alinux/alinux-17.01.repo
3、之后运行yum makecache生成缓存
然后就可以下载字体缓存了
yum install fontconfig
然后fc-list
fc-cache
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
文章由极客之音整理,本文链接:https://www.bmabk.com/index.php/post/124523.html