Files
Linux/Docs/Centos7更换阿里源.md
offends cee91802b3
Some checks failed
continuous-integration/drone Build is failing
synchronization
2025-08-25 15:57:40 +08:00

31 lines
468 B
Markdown

> 本文作者:丁辉
# Centos7更换阿里源
1. 备份本地Yum源
```bash
mkdir -p /etc/yum.repos.d/backup/
mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/backup/
```
2. 下载阿里云Yum源
```bash
curl -O http://mirrors.aliyun.com/repo/Centos-7.repo
curl -O http://mirrors.aliyun.com/repo/epel-7.repo
```
3. *删除缓存数据*
```bash
yum clean all
```
4. *创建元数据缓存*
```bash
yum makecache
```