1. Configure the centos7yum source
[root@localhost ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
2. Run yum makecache to generate the cache
[root@localhost ~]# yum makecache
3. Update
[root@localhost ~]# yum -y update