«

centos配置网络yum源和epel源

一个摆子 发布于 阅读:106 Linux


1、备份

cd /etc/yum.repos.d/ && mkdir bak
mv * ./bak

2、配置yum源

wget -O /etc/yum.repos.d/Centps-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache

3、配置epel源

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

交流群:

请先 登录 再评论