CentOS(6.x)的yum源配置
2019-03-14 本文已影响0人
噜噜雨
一、阿里云的源配置官网:https://opsx.alibaba.com/mirror

二、yum源配置
1、备份。把当前CentOS操作系统默认的yum源进行备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2、下载。把阿里云的源下载下来(下载新的 CentOS-Base.repo 到 /etc/yum.repos.d/)
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
3、运行yum makecache
生成缓存

