一、配置centos7yum源centos
[root@localhost ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
二、運行yum makecache生成緩存緩存
[root@localhost ~]# yum makecache
三、更新centos7
[root@localhost ~]# yum -y update