1、备份本地yum源:
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak

2、下载阿里yum源配置文件:
http://mirrors.aliyun.com/repo/Centos-7.repo


3、更新所有软件命令:
yum update

4、清除缓存目录下的软件包及旧的headers:
yum clean all

5、更新yum缓存:
yum makecache


1、备份本地yum源:
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak

2、下载阿里yum源配置文件:
http://mirrors.aliyun.com/repo/Centos-7.repo


3、更新所有软件命令:
yum update

4、清除缓存目录下的软件包及旧的headers:
yum clean all

5、更新yum缓存:
yum makecache

