centos 7更换阿里云yum源

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u010948569/article/details/81637362

1、先将之前的yum源文件备份

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

2、下载新的yum源

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

3、添加EPEL源

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

4、更新

yum clean all
yum makecache

猜你喜欢

转载自blog.csdn.net/u010948569/article/details/81637362
今日推荐