maczhen

优点:使用国内的yum源可以提高软件工具安装和更新的速度。

步骤:

  1. 备份旧的repo文件
    mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
  2. 下载新的repo文件到/etc/yum.repos.d/目录
    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
  3. 生成缓存
    yum clean all
    yum makecache

分类:

技术点:

相关文章:

  • 2022-02-16
  • 2022-12-23
  • 2022-01-18
  • 2022-02-19
  • 2022-01-12
猜你喜欢
  • 2021-08-19
  • 2022-02-10
  • 2022-02-18
  • 2021-05-20
相关资源
相似解决方案