1. 备份并安装base reop源
cd /etc/yum.repos.d
sudo mv CentOS-Base.repo CentOS-Base.repo.bak
  1. 下载阿里源并配置
sudo wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
  1. 安装epel repo源
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

4 清理缓存

yum clean all

5 .重新生成缓存

yum makecache

相关文章:

  • 2022-12-23
  • 2021-11-09
  • 2021-12-05
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2021-12-31
猜你喜欢
  • 2022-12-23
  • 2022-03-08
  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
  • 2022-01-03
  • 2021-09-14
相关资源
相似解决方案