CentOS6.x網易163yum源配置
一、備份原yum源
[[email protected] ~]# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.$(date +%F).bak
二、下載對應版本yum源
網易163yum源
Centos鏈接:http://mirrors.163.com/.help/centos.html
全系統鏈接:http://mirrors.163.com/.help
[[email protected] ~]# cd /etc/yum.repos.d/ [[email protected]
三、運行以下命令生成緩存
[[email protected] yum.repos.d]# yum clean all [[email protected] yum.repos.d]# yum makecache
四、更新
[[email protected] yum.repos.d]# yum -y update
CentOS6.x網易163yum源配置