> 本文作者:丁辉 # 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 ```