1、先将原文件备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak

2、下载阿里源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
需要几就把数字为几
centos7配置镜像源(阿里)

3、建立cache
yum makecache

4、更新源包
yum -y update

二、更新epel源

为什么要更新呢?因为标题一中换好源后,依旧没有特定的软件。
1、
yum install epel-release

相关文章:

  • 2021-12-14
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2021-11-01
  • 2021-12-07
  • 2021-09-02
猜你喜欢
  • 2021-11-09
  • 2021-11-25
  • 2021-08-06
  • 2022-02-07
  • 2021-06-03
  • 2022-01-31
相关资源
相似解决方案