centos更换清华镜像源
时间: 2023-10-12 18:01:45 浏览: 141
centos7.9 离线镜像源
要将CentOS更换为清华镜像源,你可以按照以下步骤进行操作:
1. 首先,备份CentOS-Base.repo文件。在终端中执行以下命令:
```
sudo cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo-old
```
这将在同一目录下创建一个名为CentOS-Base.repo-old的备份文件。这是为了防止出现问题时可以恢复原始配置。引用<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Centos修改yum清华安装源、阿里安装源详细方法](https://blog.csdn.net/m0_47136198/article/details/119383311)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [【Linux operation 08】 - Centos 7.5 更换清华源](https://blog.csdn.net/qq_22938603/article/details/123094027)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [centos7-yum更换清华镜像源](https://blog.csdn.net/weixin_44027937/article/details/122346560)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文