企业贡献

搜狐开源镜像站:http://mirrors.sohu.com/(推荐)

网易开源镜像站:http://mirrors.163.com/

阿里云镜像:http://mirrors.aliyun.com/(2014年11月29日添加)

国外的一个 http://mirror.cogentco.com/ (2015-01-31添加)

国内高校的开源镜像站

中国科学技术大学(http://debian.ustc.edu.cn/)

大连理工大学(http://mirror.dlut.edu.cn/)

北京交通大学(http://mirror.bjtu.edu.cn/cn/)

北京理工大学(http://mirror.bit.edu.cn/web/)

东北大学(http://mirror.neu.edu.cn/)

厦门大学(http://mirrors.xmu.edu.cn/)

西安电子科技大学(http://linux.xidian.edu.cn/)

哈尔滨工业大学(http://run.hit.edu.cn/html/)

天津大学(http://mirror.tju.edu.cn/)

东软信息学院(http://mirrors.neusoft.edu.cn/)

美国各大学的镜像站

麻省理工学院MIT(http://mirrors.mit.edu/)

哥伦比亚大学(http://mirror.cc.columbia.edu/)

俄勒冈州立大学(http://ftp.osuosl.org/pub/)

伊利诺伊大学厄巴纳-香槟分校(http://cosmos.cites.illinois.edu/)

杜克大学(http://archive.linux.duke.edu/)

日本大学

北陸先端科学技術大学院大学(http://ftp.jaist.ac.jp/)

附加一个Centos-repo(备份原来的CentIOS-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-$releasever - Base - http://mirror.cogentco.com/pub/linux
failovermethod=priority
baseurl=http://mirror.cogentco.com/pub/linux/centos/$releasever/os/$basearch/
http://mirrors.aliyuncs.com/centos/$releasever/os/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
gpgcheck=1
gpgkey=http://mirror.cogentco.com/pub/linux/centos/RPM-GPG-KEY-CentOS-6

#released updates
[updates]
name=CentOS-$releasever - Updates - http://mirror.cogentco.com/pub/linux
failovermethod=priority
baseurl=http://mirror.cogentco.com/pub/linux/centos/$releasever/updates/$basearch/
http://mirrors.aliyuncs.com/centos/$releasever/updates/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=http://mirror.cogentco.com/pub/linux/centos/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras - http://mirror.cogentco.com/pub/linux
failovermethod=priority
baseurl=http://mirror.cogentco.com/pub/linux/centos/$releasever/extras/$basearch/
http://mirrors.aliyuncs.com/centos/$releasever/extras/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
gpgcheck=1
gpgkey=http://mirror.cogentco.com/pub/linux/centos/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus - http://mirror.cogentco.com/pub/linux
failovermethod=priority
baseurl=http://mirror.cogentco.com/pub/linux/centos/$releasever/centosplus/$basearch/
http://mirrors.aliyuncs.com/centos/$releasever/centosplus/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
gpgcheck=1
enabled=0
gpgkey=http://mirror.cogentco.com/pub/linux/centos/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib - http://mirror.cogentco.com/pub/linux
failovermethod=priority
baseurl=http://mirror.cogentco.com/pub/linux/centos/$releasever/contrib/$basearch/
http://mirrors.aliyuncs.com/centos/$releasever/contrib/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
gpgcheck=1
enabled=0
gpgkey=http://mirror.cogentco.com/pub/linux/centos/RPM-GPG-KEY-CentOS-6

完毕后执行

yum clean all

yum makecache

yum update

如果出现故障可能是主机不能识别 mirror.cogentco.com IP地址 在 /etc/hosts里面添加即可:格式为 "IP mirror.cogentco.com"

最后修改:2017 年 11 月 16 日
如果觉得我的文章对你有用,请随意赞赏