less than 1 minute read

Centos 修改 yum 源为阿里源

备份系统自带 yum 源配置文件

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

下载 ailiyun 的 yum 源配置文件

CentOS7

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

CentOS6

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

重新生成缓存

yum makecache

Updated:

Leave a comment