-
备份本地yum源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak
2.获取阿里yum源配置文件
将 https://mirrors.tuna.tsinghua.edu.cn/help/centos/ 中的内容粘贴到 CentOS-Base.repo
3.更新 cache
yum clean all
yum makecache
4.查看并更新 yum 源
yum -y update
备份本地yum源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak
2.获取阿里yum源配置文件
将 https://mirrors.tuna.tsinghua.edu.cn/help/centos/ 中的内容粘贴到 CentOS-Base.repo
3.更新 cache
yum clean all
yum makecache
4.查看并更新 yum 源
yum -y update
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。