Centos7 配置阿里云 yum源

Centos7 配置阿里云 yum源

步骤

cd /etc/yum.repos.d
sudo mv CentOS-Base.repo CentOS-Base.repo.bak

base

sudo wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

epel repo

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

发布了6 篇原创文章 · 获赞 2 · 访问量 397

猜你喜欢

转载自blog.csdn.net/nizhongli37/article/details/104494449