1.配置阿里云镜像源
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
--2023-02-02 08:46:03-- https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
正在解析主机 mirrors.aliyun.com (mirrors.aliyun.com)... 121.31.228.243, 121.31.237.20, 121.31.237.15, ...
正在连接 mirrors.aliyun.com (mirrors.aliyun.com)|121.31.228.243|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:2495 (2.4K) [application/octet-stream]
正在保存至: “/etc/yum.repos.d/CentOS-Base.repo”
/etc/yum.repos.d/Ce 100%[===================>] 2.44K 6.07KB/s 用时 0.4s
2023-02-02 08:46:09 (6.07 KB/s) - 已保存 “/etc/yum.repos.d/CentOS-Base.repo” [2495/2495])
2.
yum makecache