Rhel5.5配置Centos yum源

ruiy哥,抛砖引玉

当你使用rhel系统时,[大部分数据库中心及政府企业选择linux服务器时通常考虑采购的版本一般不外乎是Rhel红帽及Suse,理由你懂的EcoSystem!]
你没有一个红帽网络公司订阅,你是没法使用Rhel上的yum功能,yum是红帽Linux在线更新安装软件的工具,前面提到的红帽网络订阅即RHN是一项收费的服务项目。 一般无RHN订阅,使用yum时没法用报如下错误 This system
is not registered with RHN. RHN support will be disabled.

由于CentOS是从Redhat演化而来的免费Linux版本,因此可以利用CentOS的yum更新源来实现RHEL5的YUM功能:

具体步骤如下:

1.清除Rhel默认yum缓存,

  yum clean all

2.移除默认yum

  rpm -qa|grep yum|xargs rpm -e --nodeps

3.安装包下载

所有需下载的安装包如截图

 wget http://mirrors.cat.pdx.edu/centos/5/os/x86_64/CentOS/centos-release-notes-5.9-0.x86_64.rpm
 wget http://mirrors.cat.pdx.edu/centos/5/os/x86_64/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm
 wget http://mirrors.cat.pdx.edu/centos/5/os/x86_64/CentOS/yum-updatesd-0.9-5.el5.noarch.rpm
 wget http://mirrors.cat.pdx.edu/centos/5/os/x86_64/CentOS/centos-release-5-10.el5.centos.x86_64.rpm
 wget http://mirrors.cat.pdx.edu/centos/5/os/x86_64/CentOS/centos-release-notes-5.10-0.x86_64.rpm
 wget http://mirrors.cat.pdx.edu/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
 wget http://mirrors.cat.pdx.edu/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-4.el5.x86_64.rpm

4.Import the new KEY:

  rpm --import RPM-GPG-KEY-CentOS-5

5.Remove the redhat release

  rpm -e --nodeps redhat-release

6.尝试删除Redhat Network plugin-RHN

  rpm -e yum-rhn-plugin

 
 

7.安装以下载的包

  rpm -Uvh --force yum*.rpm centos*.rpm

Rhel5系列的配置及本地yum就不在此赘述了,总之看了下面链接的博客很简单的!,关于Rhel6系列的本地及免费互联网yum配置见

http://www.cnblogs.com/ruiy/p/local-yum.html

祝君好运!

QQ:516059158

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值