Chinaunix首页 | 论坛 | 博客
  • 博客访问: 136810
  • 博文数量: 35
  • 博客积分: 692
  • 博客等级: 上士
  • 技术积分: 317
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-22 16:40
文章分类
文章存档

2014年(2)

2012年(4)

2011年(29)

分类: LINUX

2011-08-22 13:47:28

因为CentOS是RHEL的完整重新编译版本(版本号需对应),所以RHEL是一定可以用CentOS的
yum源的。
若安装了多个yum源,可以安装yum-fastestmirror软件,以实现自动选择最快的源,即
#yum install yum-fastestmirror -y
安装时注意需将yum源文件放于/etc/yum.repos.d/目录下,文件名以.repo结尾即可
安装完成后执行
       #yum clean all 或者 yum makecache 用以清除缓存文件
以下为中科大的CentOS6的更新源
#CentOS-Base.rentOS-Base.repo
[base]
name=CentOS-$releasever - Base
baseurl=
gpgcheck=1
gpgkey=


#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=
gpgcheck=1
gpgkey=

#packages used/produced in the build but not released
#[addons]
#name=CentOS-$releasever - Addons
#baseurl=
#gpgcheck=1
#gpgkey=
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=
gpgcheck=1
gpgkey=
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=
gpgcheck=1
enabled=0
gpgkey=

下面是搜狐的:
[base]
name=CentOS-$releasever - Base
baseurl=
gpgcheck=1
gpgkey=

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=
gpgcheck=1
enabled=0
gpgkey=
下面是网易163的源:
# CentOS-Base.repo
[base]
name=CentOS-$releasever - Base
baseurl=
gpgcheck=1
gpgkey=

#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=
gpgcheck=1
gpgkey=

#packages used/produced in the build but not released
#[addons]
#name=CentOS-$releasever - Addons
#baseurl=
#gpgcheck=1
#gpgkey=
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=
gpgcheck=1
gpgkey=
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=
gpgcheck=1
enabled=0
gpgkey=


                                    




           


阅读(1837) | 评论(0) | 转发(0) |
0

上一篇:Linux杂记(1)

下一篇:用户与组的管理

给主人留下些什么吧!~~