1、配置centos7yum源
[root@localhost ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
2、运行yum makecache生成缓存
[root@localhost ~]# yum makecache
3、更新
[root@localhost ~]# yum -y update
1、配置centos7yum源
[root@localhost ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
2、运行yum makecache生成缓存
[root@localhost ~]# yum makecache
3、更新
[root@localhost ~]# yum -y update