如何将Red Hat Enterprise Linux升级到v5.5

时间:2020-01-09 10:44:00  来源:igfitidea点击:

如何从5.4或者更早版本升级到Redhat Enterprise Linux服务器到v.5.5?
新的更新RHEL 5.5版本具有新的硬件平台支持,扩展的虚拟化功能和增强的互操作性。
您可以简单地使用yum命令对其进行升级:

"警告!"进行备份时,请不要过分强调在执行此操作之前对系统进行备份的重要性。

这篇文章中列出的大多数动作是在假设它们将由运行bash或者任何其他现代shell的root用户执行的前提下编写的。
输入以下命令

# uname -a
# yum update

输出示例:

Loaded plugins: downloadonly, protectbase, rhnplugin, security, verify
0 packages excluded due to repository protections
Skipping security plugin, no data
Setting up Update Process
Resolving Dependencies
Skipping security plugin, no data
--> Running transaction check
---> Package NetworkManager.x86_64 1:0.7.0-10.el5 set to be updated
---> Package NetworkManager-glib.x86_64 1:0.7.0-10.el5 set to be updated
---> Package OpenIPMI.x86_64 0:2.0.16-7.el5 set to be updated
---> Package OpenIPMI-libs.x86_64 0:2.0.16-7.el5 set to be updated
---> Package OpenIPMI-tools.x86_64 0:2.0.16-7.el5 set to be updated
---> Package acl.x86_64 0:2.2.39-6.el5 set to be updated
--> Processing Dependency: libpoppler.so.1()(64bit) for package: poppler-utils
---> Package python-dmidecode.x86_64 0:3.10.8-4.el5 set to be updated
--> Running transaction check
--> Processing Dependency: libevent-1.1a.so.1()(64bit) for package: memcached
---> Package poppler.x86_64 0:0.5.4-4.4.el5_4.11 set to be updated
.....
.......
..
epel/filelists_db                                                                                                                      | 4.1 MB     00:09     
ksplice-uptrack/filelists                                                                                                              | 2.3 kB     00:00     
rhel-x86_64-server-5/filelists                                                                                                         |  21 MB     00:03     
rhel-x86_64-server-vt-5/filelists                                                                                                      | 207 kB     00:
.....
.......
..
valgrind                                         i386                    1:3.5.0-1.el5                          rhel-x86_64-server-5                   20 M
valgrind                                         x86_64                  1:3.5.0-1.el5                          rhel-x86_64-server-5                   20 M
vconfig                                          x86_64                  1.9-3                                  rhel-x86_64-server-5                   55 k
wpa_supplicant                                   x86_64                  1:0.5.10-9.el5                         rhel-x86_64-server-5                  260 k
yum                                              noarch                  3.2.22-26.el5                          rhel-x86_64-server-5                  1.0 M
yum-rhn-plugin                                   noarch                  0.5.4-15.el5                           rhel-x86_64-server-5                   59 k
Removing:
kernel                                           x86_64                  2.6.18-164.10.1.el5                    installed                              87 M
kernel-devel                                     x86_64                  2.6.18-164.10.1.el5                    installed                              16 M
Installing for dependencies:
libsmbclient                                     x86_64                  3.0.33-3.28.el5                        rhel-x86_64-server-5                  916 k
python-dmidecode                                 x86_64                  3.10.8-4.el5                           rhel-x86_64-server-5                   89 k

Transaction Summary
=============================================================================================================================================================
Install      4 Package(s)         
Update     160 Package(s)         
Remove       2 Package(s)         

Total download size: 228 M
Is this ok [y/N]:
output truncated

重新启动服务器:

# reboot

验证一切正常:

# uname -a

输出示例:

Linux www54.theitroad.com 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

查看/etc/redhat-release文件,执行:

# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.5 (Tikanga)

验证端口是否打开并且所有服务正在运行:

# netstat -tulpn
# tail -f /var/log/messages
# tail -f /path/to/log/file