1. 进入 yum 源目录
cd /etc/yum.repos.d/

删除原配置:rm -rf *.repo

  1. 替换成阿里云的源
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
  1. 添加缓存
yum makecache

Tags: none

New