根据系统版本,我这里下载的是企业版本 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 刷新缓存,更新yum yum clean all yum makecache yum repolist yum update