Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3277786
  • 博文数量: 815
  • 博客积分: 12898
  • 博客等级: 上将
  • 技术积分: 7883
  • 用 户 组: 普通用户
  • 注册时间: 2006-12-25 09:57
文章分类

全部博文(815)

文章存档

2014年(1)

2011年(46)

2010年(192)

2009年(121)

2008年(70)

2007年(385)

分类: LINUX

2007-10-14 23:32:11

利用 CentOS 的升级包来升级 RHEL

由于 CentOS 是 RHEL 的 rebuild 发行版,因此两者之间的二进制代码是兼容的,只要找对相应的
版本号就基本上可以互通使用了。

但其实还是有一点点差别,主要是由于 CentOS 不可以直接使用 RedHat 的商标标注,因此一些关系
到系统版本和发行商的检测工作,CentOS 的包就不可以安装在 RHEL 上,例如 up2date 软件包。

经过尝试得出结果,要使用 CentOS 的升级包来升级 RHEL 系统,只需要将 RHEL 系统原来的 up2date
软件包的移除后就可以顺利完成升级操作了。


以下附上整个配置与操作:(RHEL5 为例)

安装 apt for RHEL5:

rpm -ivh
将 /etc/apt/sources.list.d 目录下的文件全部删除(请实现做好备份工作),然后新建以下文件:

/etc/apt/sources.list.d/mirror.be10.com.list

内容为:

rpm centos/5/apt/i386 os extras updates

保存并退出后,更新软件包列表
apt-get update

将系统原来的 up2date 软件包移除
apt-get remove up2date

最后使用以下命令进行系统的软件包升级
apt-get upgrade


# apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
0 upgraded, 0 newly installed, 0 removed and 0 not upgraded.
[root@ns100 sources.list.d]# apt-get update
Ign centos/5/apt/i386 release
Err centos/5/apt/i386/os pkglist
  404 Not Found
Ign centos/5/apt/i386/os release
Err centos/5/apt/i386/extras pkglist
  404 Not Found
Ign centos/5/apt/i386/extras release
Err centos/5/apt/i386/updates pkglist
  404 Not Found
Ign centos/5/apt/i386/updates release
Failed to fetch /centos/5/apt/i386/base/pkglist.os  404 Not Found
Failed to fetch /centos/5/apt/i386/base/pkglist.extras  404 Not Found
Failed to fetch /centos/5/apt/i386/base/pkglist.updates  404 Not Found
Reading Package Lists... Done
Building Dependency Tree... Done
E: Some index files failed to download, they have been ignored, or old ones used instead.

测试不成功

阅读(2636) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~