About nixCraft

Topics

How To Upgrade CentOS Linux To Version 5.2

Posted by Vivek Gite [Last updated: June 27, 2008]

CentOS Linux 5.2 has been released and available for immediate update via yum command or
the i386 and x86_64 Architectures. From the announcement page:

CentOS-5.2 is based on the upstream release EL 5.2.0, and includes packages from all variants including Server and Client. All upstream repositories have been combined into one, to make it easier for end users to work with. And the option to further enable external repositories at install time is now available in the installer.

How do I update from CentOS-5.0 and 5.1 to 5.2?

Simply type the following command as root user:
# yum update
OR
# yum upgrade
Sample output:

......
....
shadow-utils-4.0.17-13.el 100% |=========================|  50 kB    00:00
---> Package shadow-utils.i386 2:4.0.17-13.el5 set to be updated
---> Downloading header for cups to pack into transaction set.
cups-1.2.4-11.18.el5_2.1. 100% |=========================| 165 kB    00:00
Transaction Summary
=============================================================================
Install      8 Package(s)
Update     191 Package(s)
Remove       2 Package(s)         

Total download size: 298 M
Is this ok [y/N]: y

Finally, reboot your computer, enter:
# reboot

E-mail this to a friend      Printable version

You may also be interested in other helpful articles:

Discussion on This Article:

  1. Robert de Bock Says:

    Wow, that is not very difficult… Would there be an upgrade path for CentOS 4.6 to 5.2?

    Regards,

    Robert.

  2. yoander Says:

    if your CentOS version is < 5.0 the you must upgrade through out a fresh install

  3. Mathieu Says:

    I can read “yum upgrade” in the announcement, not “yum update”.

  4. vivek Says:

    Mathieu,

    upgrade option is the same as the update command with the –obsoletes flag set. There is little history behind upgrade. It was suppose to upgrade from CentOS 3 to 5.2. But it is not possible. Bottom line you can use yum upgrade or yum update to upgrade to 5.2 from 5.x only.

    HTH

  5. Mick Russom Says:

    I just upgraded from Centos 3.9 to 4.6

    I will be trying to upgrade from 4.6 to 5.2 for the heck of it. You could manually install the following rpms (worked from 3 to 4):

    All compat*rpm from CentOS 5.2, plus

    centos-release
    centos-yumconf
    compat-gcc
    compat-gcc
    compat-glibc
    compat-glibc-headers
    compat-libgcc
    compat-libstdc++
    compat-libstdc++
    compat-openldap
    comps
    comps-extras
    gcc
    gcc-c++
    gcc-g77
    gcc-gnat
    glibc
    glibc
    glibc-common
    glibc-devel
    glibc-headers
    glibc-kernheaders
    glibc-profile
    glibc-utils
    libgcc
    libselinux
    libxml2
    libxml2-devel
    libxml2-python
    more6
    python
    python-devel
    python-elementtree
    python-lxml
    python-tools
    python-urlgrabber
    rpm
    rpm-build
    rpmdb-CentOS
    rpm-devel
    rpm-libs
    rpm-python
    yum
    yum-metadata-parse

    rpm -Uvh –nodeps –replacepkgs –force all of these at once. The compat* libs protect your old userland from failing until the new one comes up.

    Then do yum upgrade.

    Worked from 3.9 to 4.6.

    Nothing is impossible if you put your mind to it. Ill try and document 4.6 to 5.2 if i get it to work.

  6. vivek Says:

    Mick,

    Let us update all if you got it working.

    TIA

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

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

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Tags: , , , , , , , ,

Copyright © 2004-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.