HowTo: Upgrade Red Hat Enterprise Linux to v5.5

by on March 30, 2010 · 21 comments· LAST UPDATED March 30, 2010

in

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

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 21 comments… read them below or add one }

1 Anonymous March 31, 2010 at 1:45 pm

what? yum update and that’s it???

Reply

2 nixCraft March 31, 2010 at 1:47 pm

Yes, all you’ve to do is type one single command and you are done.

Reply

3 Anonymous March 31, 2010 at 2:08 pm

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’?

Reply

4 nixCraft March 31, 2010 at 2:11 pm

CentOS will roll out them within 3-4 weeks time. Once rolled out simply type the same command.

HTH

Reply

5 Mortified penguin March 31, 2010 at 3:27 pm

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

Reply

6 est June 8, 2010 at 10:26 pm

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

Reply

7 nixCraft March 31, 2010 at 4:12 pm

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.

Reply

8 Zaf May 5, 2010 at 10:16 pm

Did you mean “without RHN” ? ;)

Reply

9 cnemelka March 31, 2010 at 6:01 pm

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

Reply

10 cnemelka March 31, 2010 at 6:07 pm

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?

Reply

11 Jalal Hajigholamali April 5, 2010 at 2:51 am

Hi,

Can i use “apt-get” ?

Reply

12 Charlie April 20, 2010 at 2:33 pm

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.

Reply

13 Jalal Hajigholamali April 21, 2010 at 2:49 am

Hi,

I Have installed Redhat 5.4, can i upgrade my server to CENTOS 5.5 ?
Thanks

Reply

14 Zaf May 5, 2010 at 10:15 pm

Nop. You remove RH and then install CentOS 5.5

Reply

15 MPerkins June 7, 2010 at 2:40 pm

Will this method work even if upgrading between major versions (i.e. version 4 to version 5)?

Reply

16 Jalal Hajigholamali June 9, 2010 at 3:26 am

I think no problem and you can upgrade

Reply

17 kumar July 20, 2011 at 8:07 pm

hi ,

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

Reply

18 Bilal August 24, 2011 at 6:57 pm

hello…is it possible to purchase the 5.5 update package individually?…

thanx

Reply

19 Prashant September 29, 2011 at 6:19 am

Hi,
Can i upgrade my production server from RHEL4.4 to RHEL4.9 without affecting my running applications.

Thanks,
Prashant

Reply

20 SALIM October 4, 2011 at 7:16 am

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

Reply

21 Umair December 9, 2012 at 12:10 pm

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

Reply

Leave a Comment

Tagged as: , , , , , , , , ,

Previous Faq:

Next Faq: