Centos 6.x更换Valut源 手动换源
如果是全新的系统没有wget或者是wget下载源失败的话,请自己手动换源
1、vi编辑/etc/yum.repos.d/目录下CentOS-Base.repo这个文件,直接把内容修改为源文件内容(直接复制过来即可)
vi /etc/yum.repos.d/CentOS-Base.repo
Centos官方
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-6.10 - Base - vault.centos.org
failovermethod=priority
baseurl=http://vault.centos.org/6.10/os/$basearch/
gpgcheck=1
gpgkey=http://vault.centos.org/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-6