Cent OS 6.x yum改阿里云源

发布于 2017-03-06 / Linux / 0条评论 / 2,622浏览

请先备份/etc/yum.repos.d/目录下CentOS-Base.repo,epel.repo

覆盖 CentOS-Base.repo

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

覆盖 EPEL

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

重新缓存

yum makecache
评论
站长统计