第一步:备份系统yum源
mkdir /opt/yum.repos.d
mv /etc/yum.repos.d/CentOS-* /opt/yum.repos.d
第二步:安装wget
yum install -y wget
CentOS 5
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo
CentOS 6
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
CentOS 8
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
第三步:清除文件并重建元数据缓存
yum clean all && yum makecache
(更新系统所有包)
yum update -y
最后
以上就是优秀大树最近收集整理的关于CentOS8配置网络yum源方法的全部内容,更多相关CentOS8配置网络yum源方法内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复