阿里云Linux安装镜像源地址:http://mirrors.aliyun.com/缓存
CentOS系统更换软件安装源ide
第一步:备份原镜像文件,以避免出错后能够恢复。阿里云
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backupget
第二步:下载新的CentOS-Base.repo 到/etc/yum.repos.d/it
CentOS 5class
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo软件
CentOS 6
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo下载
第三步:运行yum makecache生成缓存yum
yum makecachedi
更改后 [root@xinsz63 yum.repos.d]# ls CentOS-Base.repo