服务公告

服务公告 > 教程分享 > centos7 修改为阿里的yum源

centos7 修改为阿里的yum源

发布时间:2024-08-16 15:08

centos7 修改为阿里的yum源

 

备份本地yum源

 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak 

 

2.获取阿里yum源配置文件

 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 

 

3.更新cache

 yum makecache 

 

4.安装

 yum -y update 

 

更新yum源,等待更新完毕重启即可。

 

扫一扫访问手机版
30+ 高防云产品
1000+企业的共同选择