将 RHEL 5.1 更新到 5.4
我有一台当前运行 RHEL 5.1 的服务器,我想将其升级到 RHEL 5.4。服务器没有连接到互联网,所以我认为我不能使用“yum update”。
我如何才能升级我的服务器?这是否只是小规模升级(例如 Windows 补丁),使服务器上的所有内容保持不变,还是会删除服务器上的所有内容?
谢谢。
问候, 雷恩
I have a server currently running RHEL 5.1, and I would like to upgrade it to RHEL 5.4. The server is not connected to the Internet, so I don't think I can use "yum update".
How would I be able to upgrade my server, and is it just a small-scale upgrade, like Windows patches, leaving everything on the server intact, or would it delete everything that was on the server?
Thank you.
Regards,
Rayne
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我自己实际上并没有尝试过这一点,但即使您处于离线状态,您也应该能够使用 RHEL 5.4 的安装光盘进行升级(尽管您需要在某个地方上线来下载磁盘映像)。获得 RHEL 5.4 光盘后,您应该能够按照此处的说明进行操作:
如何操作我使用 yum 从自定义存储库更新或安装 Red Hat Enterprise Linux 5 软件包?
来更新您的系统。基本上,您可以使用磁盘中的 rpm 文件在硬盘驱动器上创建一个自定义存储库,然后将 yum 指向该存储库或直接使用该光盘。
祝你好运。
当然,如果您可以将服务器暂时上线并仅使用在线存储库,则在更新 5.1 发行版中的所有软件包后,您将拥有与安装 5.4 相同的所有文件。至少我记得发生过这样的事。我安装了 5.0,并不断更新,当我比较它们时,它们似乎与 5.3 版本(当时的当前版本)相同,尽管在启动过程中,我的系统说它仍然是 5.0
I haven't actually tried this myself, but you should be able to use an installation disc for RHEL 5.4 to upgrade even if you are off-line (although you'll need to get on-line somewhere to download the disk image). Once you have the RHEL 5.4 disc, you should be able to follow the instructions here:
How do I use yum to update or install packages for Red Hat Enterprise Linux 5 from a customized repository?
to update your system. Basically, you create a custom repository on you hard drive with the rpm files from the disk and point yum at it or use the disc directly.
Good luck.
Of course if you can put the server temporarily on-line and just use the on-line repositories, after updating all the packages in your 5.1 distribution, you'll have all the same files as if you installed 5.4. At least that's what I remember happening. I had a 5.0 installation that I kept updated and when I compared them they seemed to be the same as the 5.3 version (current at the time) although during boot, my system said it was still 5.0
雷恩,
我曾经在能源部机密系统上工作,这些系统永远无法接触公共互联网。正如前面提到的,有一种非常简单的方法可以做到这一点。只需使用 ISO 作为存储库,为了让我的示例正常工作,它必须是 DVD 映像。 (使用磁盘 {1,2,3} 的方法是将文件从每个磁盘复制到本地磁盘或存储设备上)
它看起来像这样:
[root@主机名 iso]# createrepo 。
44/20586 - rhel54/HighAvailability/Packages/PyQt4-4.6.2-8.el6.x86_64.rpm
从 RHEL 5.1 到 RHEL 5.4 的更新可不是一个小更新,不像 Windows 补丁。您可以阅读发行说明,但最终您将获得更新的内核以及对软件包的大量更新。我之前没有从5.X升级到5.Y+3,它总是增量的(5.1到5.2)。无论如何,这应该对你有用。
Rayne,
I used to work on DOE classified systems that could never touch the public internet. There is a very easy way to do this as mentioned. Just use the ISO as a repo, and for my example to work, it needs to be a DVD image. (The way around that using disk {1,2,3} is to copy the files from each disk onto the local disk or a storage device)
It will look like this:
[root@hostname iso]# createrepo .
44/20586 - rhel54/HighAvailability/Packages/PyQt4-4.6.2-8.el6.x86_64.rpm
The update from RHEL 5.1 to RHEL 5.4 is not a small one, not like Windows patches. You can read the release notes, but you will end up with a newer kernel in the end and a ton of updates to the packages. I have not upgraded from 5.X to 5.Y+3 before, it's always been incremental (5.1 to 5.2). At any rate, this should work for you.