centos7.9配置yum源202508

centos7.9配置yum源202508

  • [1 环境说明](#1 环境说明)
  • [2 配置方法](#2 配置方法)

1 环境说明

  • Cpu x86
  • Os CentOS7.9
  • 改为aliyun 的yum源

2 配置方法

bash 复制代码
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache
yum list