首页 > 代码库 > CentOS7快速更改yum源

CentOS7快速更改yum源

yum install wget -y
rm -rf /etc/yum.repos.d/*
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo yum clean all yum makecache

 

CentOS7快速更改yum源