RHEL 8.2 更换 CentOS 阿里云镜像源

1.备份

[root@rhel8 ~]$ mv /etc/yum.repos.d/redhat.repo /etc/yum.repos.d/redhat.repo.bak

2.下载新的CentOS-Base.repo 到 /etc/yum.repos.d/

[root@rhel8 ~]$ curl -o /etc/yum.repos.d/redhat.repo http://mirrors.aliyun.com/repo/Centos-8.repo

3、清除缓存,生成缓存

[root@rhel8 ~]$ yum clean all #清除缓存
[root@rhel8 ~]$ yum makecache #生存缓存
上一篇
下一篇