posts - 2,  comments - 0,  trackbacks - 0

最近国内外更新了很多的CentOS源代码,下面是国内更新CentOS源代码的比较好的。CentOS源代码中CentOS USTC mirror

cd /etc/yum.repos.d  

mv CentOS-Base.repo CentOS-Base.repo.save  

wget http://centos.ustc.edu.cn/CentOS-Base.repo  

CentOS-Base.repo

This file uses a new mirrorlist system developed by Lance Davis for CentOS.  

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.

下面是最近的CentOS源代码中比较不错的

[base]

name=CentOS-$releasever - Base  

#mirrorlist=http://centos.ustc.edu.cn/?release=$releasever&arch=$basearch&repo=os

baseurl=http://centos.ustc.edu.cn/centos/$releasever/os/$basearch/  

gpgcheck=1

gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5  

#released updates   

[update]

name=CentOS-$releasever - Updates  

#mirrorlist=http://centos.ustc.edu.cn/?release=$releasever&arch=$basearch&repo=updates

baseurl=http://centos.ustc.edu.cn/centos/$releasever/updates/$basearch/  

gpgcheck=1

gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5  

#packages used/produced in the build but not released  

[addons]

name=CentOS-$releasever - Addons  

#mirrorlist=http://centos.ustc.edu.cn/?release=$releasever&arch=$basearch&repo=addons

baseurl=http://centos.ustc.edu.cn/centos/$releasever/addons/$basearch/  

gpgcheck=1

gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5  

#additional packages that may be useful  

[extras]

name=CentOS-$releasever - Extras  

#mirrorlist=http://centos.ustc.edu.cn/?release=$releasever&arch=$basearch&repo=extras

baseurl=http://centos.ustc.edu.cn/centos/$releasever/extras/$basearch/  

gpgcheck=1

gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5  

#additional packages that extend functionality of existing packages  

[centosplus]

name=CentOS-$releasever - Plus  

#mirrorlist=http://centos.ustc.edu.cn/?release=$releasever&arch=$basearch&repo=centosplus

baseurl=http://centos.ustc.edu.cn/centos/$releasever/centosplus/$basearch/  

gpgcheck=1

enabled=0

gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5  

#contrib - packages by Centos Users  

[contrib]

name=CentOS-$releasever - Contrib  

#mirrorlist=http://centos.ustc.edu.cn/?release=$releasever&arch=$basearch&repo=contrib

baseurl=http://centos.ustc.edu.cn/centos/$releasever/contrib/$basearch/  

gpgcheck=1

enabled=0

gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5  

这是最近国内更新CentOS源代码中比较好的。希望对大家有所帮助。

posted @ 2011-03-07 19:43 牛 阅读(561) | 评论 (0)编辑 收藏
yum install ssh
service sshd start
chkconfig sshd on

还来不及更新安装源,现在网络死慢,更新也没用~~~
刚申请完c++博客,就当此为处女作。
posted @ 2011-03-07 19:36 牛 阅读(146) | 评论 (0)编辑 收藏
仅列出标题  
<2019年6月>
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456

常用链接

留言簿

随笔档案

搜索

  •  

最新评论

阅读排行榜

评论排行榜