1、備份原來的源
1 cd /etc/yum.repos.d 2 cp CentOS-Linux-Base.repo CentOS-Base.repo.bak
2. 下載對應版本的repo文件
wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
3、清除舊的yum緩存並生成新的yum緩存
1 yum clean all 2 yum makecache
1、備份原來的源
1 cd /etc/yum.repos.d 2 cp CentOS-Linux-Base.repo CentOS-Base.repo.bak
2. 下載對應版本的repo文件
wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
1 yum clean all 2 yum makecache
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。