Centos7 更换yum源

Centos7 更换yum源

1)

1. 更换阿里云源 
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
# 配置epel源
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

yum clean all
yum makecache
posted @ 2020-09-27 23:13  pigeast  阅读(860)  评论(0编辑  收藏  举报