一、获取镜像源地址
1、阿里镜像源地址
https://developer.aliyun.com/mirror/
2、找到centos镜像源打开
3、进行下载repo
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
4、建立元数据
yum clean all && yum makecache
二、测试yum安装
1、wget
yum -y install wget
2、vim
yum -y install vim