更换阿里yum

  1、下载wget

yum install -y wget

  2、备份默认的yum

mv /etc/yum.repos.d /etc/yum.repos.d.backup

  3、设置新的yum目录

mkdir /etc/yum.repos.d

  4、下载阿里yum配置到该目录中

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

  5、重建缓存

yum clean all
yum makecache

  6、升级所有包(改变软件设置和系统设置,系统版本内核都升级,需要几分钟耐心等待)

yum update -y

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2021-05-27
  • 2021-12-15
  • 2022-01-16
  • 2021-06-03
  • 2021-11-10
猜你喜欢
  • 2021-12-23
  • 2022-12-23
  • 2021-05-15
  • 2021-12-11
  • 2021-10-02
  • 2021-09-27
  • 2022-12-23
相关资源
相似解决方案