CentOS6.5源

现在CentOS 6的域名已经在正常提供镜像的网站搜索不到,需要到门户的归档李查找。

下面是CentOS 6的yum配置文件内容,直接复制/etc/yum.repos.d/下面即可。

【CentOS-Base.repo文件】

# 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.5 - Base - mirrors.aliyun.com

failovermethod=priority

baseurl=http://mirrors.aliyun.com/centos-vault/6.5/os/$basearch/

gpgcheck=0

gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6


#released updates

[updates]

name=CentOS-6.5 - Updates - mirrors.aliyun.com

failovermethod=priority

baseurl=http://mirrors.aliyun.com/centos-vault/6.5/updates/$basearch/

gpgcheck=0

gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6


#additional packages that may be useful

[extras]

name=CentOS-6.5 - Extras - mirrors.aliyun.com

failovermethod=priority

baseurl=http://mirrors.aliyun.com/centos-vault/6.5/extras/$basearch/

gpgcheck=0

gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6


#additional packages that extend functionality of existing packages

[centosplus]

name=CentOS-6.5 - Plus - mirrors.aliyun.com

failovermethod=priority

baseurl=http://mirrors.aliyun.com/centos-vault/6.5/centosplus/$basearch/

gpgcheck=0

enabled=0

gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6


#contrib - packages by Centos Users

[contrib]

name=CentOS-6.5 - Contrib - mirrors.aliyun.com

failovermethod=priority

baseurl=http://mirrors.aliyun.com/centos-vault/6.5/contrib/$basearch/

gpgcheck=0

enabled=0

gpgkey= http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6


######################################################################################

【文件epel.repo】

[epel]

name=Extra Packages for Enterprise Linux 6 - $basearch

baseurl=http://mirrors.aliyun.com/epel-archive/6/x86_64/

failovermethod=priority

enabled=1

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

######################################################################################

最后 yum makecache fast 成功执行完成即可。



请使用浏览器的分享功能分享到微信等