CentOS修改yum源为阿里镜像源

1、备份原来的文件

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

2、进入 cd /etc/yum.repos.d/

cd /etc/yum.repos.d/

3、下载配置文件

curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo

4、清理缓存并生成新的缓存

yum clean all
yum makecache

相关文章:

  • 2021-07-07
  • 2021-07-15
  • 2021-12-05
  • 2021-08-25
  • 2022-02-15
猜你喜欢
  • 2022-12-23
  • 2021-09-30
  • 2021-12-20
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案