标签:sharp lan bak yum源配置 http blog tar ror logs
一、备份原yum源
[root@yancy ~]# 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
[root@yancy ~]# cd /etc/yum.repos.d/ [root@yancy yum.repos.d]# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
三、运行以下命令生成缓存
[root@yancy yum.repos.d]# yum clean all [root@yancy yum.repos.d]# yum makecache
四、更新
[root@yancy yum.repos.d]# yum -y update
标签:sharp lan bak yum源配置 http blog tar ror logs
原文地址:http://www.cnblogs.com/vurtne-lu/p/7405931.html