How To Upgrade CentOS Linux To Version 5.2
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:
- Upgrading Ubuntu Linux 7.04 to Gutsy Gibbon 7.10
- Howto upgrade from Ubuntu 6.10 to Ubuntu feisty fawn 7.04 Linux
- Download of the day CentOS 5 CD / DVD ISO
- CentOS / Red Hat Enterprise Linux 5.2 Poor NFS Performance and Solution
- Upgrade wordpress quickly in 3 easy steps from UNIX shell prompt
Discussion on This Article:
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!
Tags: centos 5, centos linux, external repositories, kernel upgrade, reboot command, root user, system upgrade, yum command, yum repositories




Wow, that is not very difficult… Would there be an upgrade path for CentOS 4.6 to 5.2?
Regards,
Robert.
if your CentOS version is < 5.0 the you must upgrade through out a fresh install
I can read “yum upgrade” in the announcement, not “yum update”.
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
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.
Mick,
Let us update all if you got it working.
TIA