[root@chai /]# cd /etc/yum.repos.d
[root@chai yum.repos.d]# ls
CentOS-Base.repo CentOS-fasttrack.repo CentOS-Vault.repo
CentOS-CR.repo CentOS-Media.repo CentOS-x86_64-kernel.repo
CentOS-Debuginfo.repo CentOS-Sources.repo
[root@chai yum.repos.d]# wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
--2022-03-28 19:30:01-- http://mirrors.163.com/.help/CentOS7-Base-163.repo
正在解析主机 mirrors.163.com (mirrors.163.com)... 101.71.33.11
正在连接 mirrors.163.com (mirrors.163.com)|101.71.33.11|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:1572 (1.5K) [application/octet-stream]
正在保存至: “CentOS7-Base-163.repo”
100%[======================================================>] 1,572 --.-K/s 用时 0s
2022-03-28 19:30:02 (120 MB/s) - 已保存 “CentOS7-Base-163.repo” [1572/1572])
[root@chai yum.repos.d]# ls
CentOS7-Base-163.repo CentOS-Debuginfo.repo CentOS-Sources.repo
CentOS-Base.repo CentOS-fasttrack.repo CentOS-Vault.repo
CentOS-CR.repo CentOS-Media.repo CentOS-x86_64-kernel.repo
[root@chai yum.repos.d]# mv CentOS-Base.repo CentOS.repo.bak
[root@chai yum.repos.d]# ls
CentOS7-Base-163.repo CentOS-fasttrack.repo CentOS-Sources.repo
CentOS-CR.repo CentOS-Media.repo CentOS-Vault.repo
CentOS-Debuginfo.repo CentOS.repo.bak CentOS-x86_64-kernel.repo
[root@chai yum.repos.d]# mv CentOS.repo.bak CentOS-Base.repo.bak
[root@chai yum.repos.d]# ls
CentOS7-Base-163.repo CentOS-Debuginfo.repo CentOS-Sources.repo
CentOS-Base.repo.bak CentOS-fasttrack.repo CentOS-Vault.repo
CentOS-CR.repo CentOS-Media.repo CentOS-x86_64-kernel.repo
[root@chai yum.repos.d]# mv CentOS7-Base-163.repo CentOS-Base.repo
[root@chai yum.repos.d]# ls
CentOS-Base.repo CentOS-Debuginfo.repo CentOS-Sources.repo
CentOS-Base.repo.bak CentOS-fasttrack.repo CentOS-Vault.repo
CentOS-CR.repo CentOS-Media.repo CentOS-x86_64-kernel.repo
[root@chai yum.repos.d]#