Upgrade to CentOS 5.9 from CentOS 5.8 (5.7, 5.6, 5.5, 5.4, 5.3, 5.2, 5.1, 5.0)


This is quick guide, howto upgrade to CentOS 5.9 from CentOS 5.8 (5.7, 5.6, 5.5, 5.4, 5.3, 5.2, 5.1, 5.0).

1. Change to root User

su -
## OR ##
sudo -i

2. Backup all important data

  • Backup /etc diretory
  • Backup important logs /var/log
  • Backup web server configs and sites
  • Dump MySQL databases
  • Dump PostgreSQL databases
  • Backup all what you need if something goes wrong

3. Check list of packages that are going to be updated

yum list updates

4. Upgrade with yum update

Official way to do upgrade:

yum update

Another way to do update is first clean all, second update glibc, yum, rpm and python packages and then update other packages like following:

yum clean all
yum update glibc* yum* rpm* python*
yum update

5. Reboot

reboot

6. Check CentOS 5.9 release info and Check your entire system

cat /etc/redhat-release
## Output ##
CentOS release 5.9 (Final)

Following needs redhat-lsb package

lsb_release -a
## Output ##
LSB Version:    :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: CentOS
Description:    CentOS release 5.9 (Final)
Release:        5.9
Codename:       Final

Check that your system is working normally and test every services.

Follow If Not True Then False Updates!

11 Comments

  1. Thanks for the instructions. I just upgraded a fresh CentOS 5.3 install up to CentOS 5.5 final. I followed your instructions exactly and they worked perfectly.

    I had been using Fedora before (way back on Fedora 7). I tried to upgrade through a few Fedora versions, but I decided it was time for the nightmare to end. It’s almost a shock that the same company that makes Fedora is really behind CentOS (Fedora = Beta, Redhat=Paid, CentOS=Free Redhat Clone w/out Support).

    Anyway, thanks for the post. It worked like a charm.

  2. I really liked your blog! It helped me alot…

  3. Thanks for the help, it worked perfectly

  4. Thanks for the instructions, they helped a lot , i’ll keep a bookmark to your blog incase anything changes for version 6. now i’ve just got to upgrade the php

  5. Hi, I get this error;

    [root@vel ~]# lsb_release -a
    -bash: lsb_release: command not found

    What should I do to this?

    • Hi sadvel,

      Simply install redhat-lsb

      yum install redhat-lsb
  6. Hi,

    Just done an upgrade from 5.3 to 5.4 using the above process (thanks! )

    It won’t upgrade any further than 5.4. How do I get it to go to 5.5 or above? I’ve tried yum clean all, and repeating the above process, but it just says nothing to upgrade.

    Cheers,

    Darren.

  7. Very good information.
    Thks a lot.
    Grettings

  8. Thank you sir!

  9. Very useful information, thank you.

  10. useful information. Thank you.

Leave a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackbacks/Pingbacks

  1. CentOS 5.5 Released – What’s new, Overview, Features, Screenshots | if not true then false - [...] Desktop with OpenOffice.org 3.1.1 » Install CentOS 5.5 with NetInstall Guide » Upgrade to CentOS 5.5 From 5.4 ...
  2. Tweets that mention Upgrade to CentOS 5.5 from CentOS 5.4 (5.3, 5.2, 5.1, 5.0) | if not true then false -- Topsy.com - [...] This post was mentioned on Twitter by Zuissi. Zuissi said: Upgrade to CentOS 5.5 from CentOS 5.4 (5.3, 5.2, ...
  3. Gadget Newz - [...] Upgrade to CentOS 5.5 from CentOS 5.4 (5.3, 5.2, 5.1, 5.0) [...]