国内速度最快的centos5.4 yum(更新源)

5.5时代又来了,更新下(10.6.11)

安装后请按照以下步骤修改CenOS-Base.repo,以后就可以方便的用yum安装软件了.

cd /etc/yum.repos.d
mv CentOS-Base.repo  CentOS-Base.repo.save
wget http://centos.ustc.edu.cn/CentOS-Base.repo.5
mv CentOS-Base.repo.5 CentOS-Base.repo

 

 

 

第一步:修改/etc/yum.repos.d/CentOS- Base.repo为:

[base] 
name=CentOS-5 - Base 
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever5&arch=$basearch& 
repo=os 
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ 
baseurl=http://ftp.sjtu.edu.cn/centos/5.4/os/$basearch/ 
gpgcheck=1 
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

#released updates 
[update] 
name=CentOS-5 - Updates 
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=updates 
baseurl=http://ftp.sjtu.edu.cn/centos/5.4/updates/$basearch/ 
gpgcheck=1 
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

#packages used/produced in the build but not released 
[addons] 
name=CentOS-5 - Addons 
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=addons

baseurl=http://ftp.sjtu.edu.cn/centos/5.4/addons/$basearch/ 
gpgcheck=1 
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

#additional packages that may be useful 
[extras] 
name=CentOS-5 - Extras 
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=extras

baseurl=http://ftp.sjtu.edu.cn/centos/5.4/extras/$basearch/ 
gpgcheck=1 
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

#additional packages that extend functionality of existing packages 
[centosplus] 
name=CentOS-5 - Plus 
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=centosplus 
baseurl=http://ftp.sjtu.edu.cn/centos/5.4/centosplus/$basearch/ 
gpgcheck=1 
enabled=0 
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

#contrib - packages by Centos Users 
[contrib] 
name=CentOS-5 - Contrib 
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=contrib 
baseurl=http://ftp.sjtu.edu.cn/centos/5.4/contrib/$basearch/ 
gpgcheck=1 
enabled=0 
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

 


第二步:64位: rpm --import http://ftp.sjtu.edu.cn/centos/5.4/os/x86_64/RPM-GPG-KEY-CentOS-5
32位: rpm --import http://ftp.sjtu.edu.cn/centos/5.4/os/i386/RPM-GPG-KEY-CentOS-5
第三步:yum update

 CentOS (Community Enterprise Operating System),   社区企业操作系统   redhat.com发布redhat 9(简写为rh9)后,不再开发redhat 10,11...,全面转向redhat enterprise linux(简写为rhel)的开发,和以往不同的是,新的rhel 3要求用户先购买lisence,redhat.com承诺保证产品的稳定性,安全性。rhel 3二进制代码不再提供下载,而是作为redhat 服务的一部分,但代码依然是open。所以有了centos ,whitebox,dao 等等一批open source的企业版本,其中centos最为活跃。   CentOS计划所推出──全名为"社区企业操作系统"(Community Enterprise Operating System)的这个计划是在2003年红帽决定不再提供免费的技术支持及产品认证之后的部份"红帽重建者"(Red Hat rebuilders)之一。   CentOS和Linueox、组装Linux (White box Linux)、Tao Linux 、X/OS Linux,及科学Linux (Scientific Linux)等都以红帽所发布的代码原件重建Red Hat Enterprise Linux的翻版,并修正了已经发现了的redhat的bug。   CentOS是"Caos Linux"独立计划的一个分枝,在Lawrence Berkeley 国家实验室担任管理员与程序设计师的Kurtzer 表示。但后来Caos基金会最受欢迎的计划变成是RHEL的重建。   "对于广被采用的新版本来说,必须为社区展示出其计划和产品稳定、可靠的解决方案。"Kurtzer 表示。"但因为CentOS是以知名的代码平台为基础,因此可以走捷径在一夜之间就成功。"   Kurtzer 并没有确切数据,但他预估,CentOS使用者里有成千上万个。   CentOS社区将Redhat的网站上的所有代码下载下来,进行重新编译。重新编译后,由于AS/ES/WS是商业产品,必须将所有Redhat的Logo和标识改成自己的CentOS标识。比如将AS4原版的SRPM码编译后,就成为了CentOS 4.0。AS4Update1的码编译后,就成为了CentOS4.1。AS4Update2的码编译后,就成为了CentOS4.2。同理,CentOS的3.x/4.x都对应着相应的版本。   CentOS的最新版本是CentOS5.4,相对于以前版本有着更加强大的功能。CentOS Linux 5.4是一个依GPL规范,及利用 RedHat Enterprise Linux(RHEL) 的代码 (source code) 来重新编译 (compile) 的 Linux 版本。   CentOS 5.4 提供和 RHEL 的 Binary 档案几乎百分之百兼容性,相同的版本 (Release) 和维护 (Maintainence) 更新时间。和 RedHat Enterprise Linux (RHEL) 不同的是,CentOS依GPL的规范,移除了 RedHat品牌及图片。   所以我们说,CentOS就是Redhat的AS/ES/WS的免费版本。使用CentOS,可以获得和AS/ES相同的性能和感受。CentOS除了提供标准的编号1~4或者1~5的若干张ISO以外,还提供了最小化1CD的Server光盘。用Server光盘安装好的系统,就是一个最小化的Linux内核加上常用的httpd/mysql等包,不包含Xwindows桌面等对于服务器无用的软件。   国内主要的更新:   中科大:http://centos.ustc.edu.cn/ 适合电信和教育网   清华,复旦yum等适合教育网   http://www.centoschina.com社区也提供更新服务,不过不提供cd和dvd的下载,电信线路   更详细信息请参看该商品官方网站:http://www.centos.org/   http://www.centospub.com/ -- CentOS纯中文攻略站   http://www.centoschina.com
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值