HowTo: Upgrade Red Hat Enterprise Linux to v5.5

Posted on in Categories last updated March 30, 2010

How do I upgrade to Redhat Enterprise Linux server to v.5.5 from 5.4 or earlier version?

The new update RHEL 5.5 release features new hardware platform enablement, expanded virtualization capabilities and enhanced interoperability. You can simply upgrade it using the yum command:

WARNING! Make a backup – it cannot be stressed enough how important it is to make a backup of your system before you do this.

Most of the actions listed in this post are written with the assumption that they will be executed by the root user running the bash or any other modern shell. Type the following commands
# uname -a
# yum update

Sample outputs:

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 the server:
# reboot
Verify everything is working:
# uname -a
Sample outputs:

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

See /etc/redhat-release file, enter:
# cat /etc/redhat-release

Red Hat Enterprise Linux Server release 5.5 (Tikanga)

Verify that ports are open and all services are running:
# netstat -tulpn
# tail -f /var/log/messages
# tail -f /path/to/log/file

References:

man yum

21 comment

  1. question then, if I’m running CentOS 5.2.. I can just keep yum updating all the way up to 5.5? I’ve always assumed you had to do much more work than that to go from release to release with CentOS. Is CentOS a ‘rolling release’?

  2. Vivek, I think you should’ve mentioned that the yum update command works only if you have a valid RedHat Network subscription and if your repository list is configured properly… the command will never work if RHEL is not able to connect to Red Hat’s servers

    1. A coworker saids that by inserting apel,rpmforge and utterramblings repos they will take care of RHEL updates/upgrades without RHN support.
      Is that true?

      Thanks

  3. We have 100s of server running nothing bur RHEL 4 and 5 with our own proxy server. Some of my clients have over 2k+ server running nothing but RHEL. Why anyone will install RHEL with RHN (which provides security update) is beyond me? If you cannot afford RHEL go for Centos.

  4. This process is broken (again).

    Error: failed to retrieve repodata/filelists.xml.gz from rhel-x86_64-server-5
    error was [Errno -1] Metadata file does not match checksum

  5. Vivek:
    Not sure I understand your point.

    “We have 100s of server running nothing bur RHEL 4 and 5 with our own proxy server. Some of my clients have over 2k+ server running nothing but RHEL. Why anyone will install RHEL with RHN (which provides security update) is beyond me? If you cannot afford RHEL go for Centos.”

    Can you elaborate? Are you against installing RHEL with RHN?

  6. Can I use apt-get?

    No. Unless you really like horribly broken systems that have two conflicting package management systems stepping all over each other.

    If you insist on using apt, you should run a dpkg based system like Debian or Ubuntu. If you are going to use an RPM based system like Centos, Red Hat, or SuSe use tools based on RPM.

  7. hi ,

    i use this (yum update)command this is automatically updated 5.4 to 5.6… but i want 5.5 .. any solution ?

  8. how to upgrade redhat el4 to redhat el5 .
    i boot g
    from the el5 cd unfourtunatilry i didnt find upguarade option .. what we will do this situtaion kindly help us on this

  9. Dear I have following your tutorials for some time. And this is my first request. So please do it

    Please make tutorial on how to update

    1: Redhat 5.5 to Desired release

    2: Upgrade it to latest release let say 5.5 to 6

    Thanks

Leave a Comment