1、对应的清华源地址: https://mirrors.tuna.tsinghua.edu.cn/centos-stream/9-stream/ 2、更换源 2.1、配置文件路径: /etc/yum.repos.d/centos.repo 2.2、首先备份centos.repo cp centos.repo backup_centos.repo 2.3、修改centos.repo文件,修改后的文件如下 [root@localhost yum.repos.d]# cat centos.repo [baseos] nam