Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1223039
  • 博文数量: 322
  • 博客积分: 10010
  • 博客等级: 上将
  • 技术积分: 3276
  • 用 户 组: 普通用户
  • 注册时间: 2009-12-17 09:21
文章分类

全部博文(322)

文章存档

2010年(155)

2009年(167)

我的朋友

分类: LINUX

2010-04-05 15:41:24

RHEL是一个非常稳定的企业级Linux操作系统,红帽的看家产品,呵呵,但是使用起来却不如Ubuntu方便,毕竟Ubuntu是要桌面化。
光是RHEL5.4的公网源配置就花了我俩小时,可能跟我的网速也有关系,反正到现在源的速度也很不令人满意,无奈,将就着用吧。
公网的源有上交的,科大的还有163的。三个源我都配置了一遍,速度都差不多,相比来说上交的还是比较快的。
首先将RHEL5自带的yum删除 ,RHEL5 使用centos5的源来更新更快些,以下都是centos的公网源在rhel上的配置使用
rpm -qa|grep yum
找到所有的yum软件包,使用命令
rpm -e yum-XXX --nodeps
接下来从科大的网站上下载 yum软件包
yum-3.2.22-20.el5.centos.noarch.rpm
yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm
yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm 
yum-security-1.1.16-13.el5.centos.noarch.rpm
yum-updatesd-0.9-2.el5.noarch.rpm 
在超级用户下安装上述RPM包
现在进入
cd /etc/yum.repo.d/
备份rhel自带源
mv rhel-debuginfo.repo rhel-debuginfo.repo.bak
创建Centos科大源
将如下内容保存到CentosUSTC.repop
  # 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.
#
#
[base]
name=CentOS-5.4 - Base
baseurl=
gpgcheck=1
gpgkey=
#released updates
[updates]
name=CentOS-5.4 - Updates
baseurl=
gpgcheck=1
gpgkey=
#packages used/produced in the build but not released
[addons]
name=CentOS-5.4 - Addons
baseurl=
gpgcheck=1
gpgkey=
#additional packages that may be useful
[extras]
name=CentOS-5.4 - Extras
baseurl=
gpgcheck=1
gpgkey=
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5.4 - Plus
baseurl=
gpgcheck=1
enabled=0
gpgkey=
 
创建上交源,将如下内容复制到CentosSJTU.repo里
[base]
name=CentOS-5 - Base
#mirrorlist=
repo=os
#baseurl=
baseurl=
gpgcheck=1
gpgkey=
#released updates
[update]
name=CentOS-5 - Updates
#mirrorlist=
baseurl=
gpgcheck=1
gpgkey=
#packages used/produced in the build but not released
[addons]
name=CentOS-5 - Addons
#mirrorlist=
baseurl=
gpgcheck=1
gpgkey=
#additional packages that may be useful
[extras]
name=CentOS-5 - Extras
#mirrorlist=
baseurl=
gpgcheck=1
gpgkey=
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5 - Plus
#mirrorlist=
baseurl=
gpgcheck=1
enabled=0
gpgkey=
#contrib - packages by Centos Users
[contrib]
name=CentOS-5 - Contrib
#mirrorlist=
baseurl=
gpgcheck=1
enabled=0
gpgkey=
# vi dag.repo
#[dag]
#name=Dag RPM Repository for RHEL5
#baseurl=
#enabled=1
#gpgcheck=1
#gpgkey=
创建163的源163.repo
[base]
name=CentOS-5.4 - Base
baseurl=
gpgcheck=1
gpgkey=
[update]
name=CentOS-5.4 - Updates
baseurl=
gpgcheck=1
gpgkey=
[extras]
name=CentOS-5.4 - Extras
baseurl=
gpgcheck=1
gpgkey=
[addons]
name=CentOS-5.4 - Addons
baseurl=
gpgcheck=1
gpgkey=
[centosplus]
name=CentOS-5.4 - Plus
baseurl=
gpgcheck=1
enabled=0
gpgkey=

然后,yum update
接下来就可以使用yum安装软件了~~enjoy Linux Desktop
 
阅读(1101) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~