CentOS 6系统更换yum源

in linux with 0 comment

由于centos6 官方已经停止服务,因此自带的默认yum源已经无法正常使用,下面就是更换第三方可用yum源的操作。

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo-backup
wget -O /etc/yum.repos.d/CentOS-Base.repo http://file.kangle.odata.cc/repo/Centos-6.repo
wget -O /etc/yum.repos.d/epel.repo http://file.kangle.odata.cc/repo/epel-6.repo
yum clean all
yum makecache
Responses