centos7下预置的yum源应用安装及更新比较慢,有时还掉链子,更换到国内的源比较省心,这里以阿里源为例。

进入到源文件目录 cd /etc/yum.repos.d

备份旧的配置文件 mv CentOS-Base.repo CentOS-Base.repo.bak

下载阿里源的文件 wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

清理缓存 yum clean all

重新生成缓存 yum makecache

相关文章:

  • 2022-12-23
  • 2022-01-16
  • 2021-11-23
  • 2021-08-18
  • 2022-12-23
猜你喜欢
  • 2021-12-05
  • 2021-08-20
  • 2022-12-23
  • 2022-12-23
  • 2021-07-22
  • 2021-04-03
相关资源
相似解决方案