进入目录:
cd /etc/yum.repos.d
备份:
mkdir repobak mv
*.repo repobak/
下载CentOS-Base.repo 到路径/etc/yum.repos.d/

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
清除缓存:
yum clean all
重建缓存:
yum makecache

相关文章:

  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-11
  • 2022-12-23
  • 2022-12-23
  • 2021-07-30
  • 2022-01-14
相关资源
相似解决方案