[FrontPage] [TitleIndex] [WordIndex

This is a read-only archived version of wiki.centos.org


1. This is not a supported upgrade path !

<!> The Server CD series mentioned here does not exist in all CentOS releases, nor in each point level respin. The CentOS team strives to permit minimal installs with just CD 1 of a given series, but this is not always possible. Please check the Release Notes for a given Major and Point release for further details.

<!> You have to force an install of python-sqlite from the CentOS 5 repositories after the upgrade, as the version number of python-sqlite didn't change between 4 and 5.

rpm -Uvh --replacepkgs python-sqlite-1.1.7-1.2.1.i386.rpm

Otherwhise you'll get the error

 Could not find any working storages


There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   No module named sqlite

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.4.3 (#1, Mar  5 2011, 21:25:56)                    
[GCC 4.1.2 20080704 (Red Hat 4.1.2-50)]              

If you cannot solve this problem yourself, please go to
the yum faq at:

2. Always have a current backup of you data !

This is a "general" guideline for a CentOS 4.4 Server CD install upgrade via yum.

YMMV with additionally installed RPMS and RPMS from third party Repositories.

I did a fresh install of the x86_64 Server 4.4 CD (everything) for this migration test.

Now that I have a CentOS 4.4 install, I will begin the migration to CentOS 5 via yum.

Start the upgrade process

mkdir /tmp/Upgrades
cd /tmp

Check for centos-yumconf

 rpm -qi centos-yumconf

* If centos-yumconf exist, remove it.

* NOTE this seems to be only installed if you installed from the x86_64 version of the ServerCD 4.4 ISO.

rpm -e centos-yumconf

Installing needed RPMS manually

I used wget to acquire the RPMS.

Install centos-release-5-0.0.el5.centos.2.x86_64.rpm centos-release-notes-5.0.0-2.x86_64.rpm

rpm -Uvh centos-release-5-0.0.el5.centos.2.x86_64.rpm centos-release-notes-5.0.0-2.x86_64.rpm

# Make sure you disable all other repos and only have CentOS Base and Updates repositories enabled.

Install the CentOS 5 GPG Key

# Get the GPG key from a mirror or CentOS 5 media.

rpm --import http://mirrors.kernel.org/centos/RPM-GPG-KEY-CentOS-5

cd /tmp/Upgrades

Download the following RPMS

# This gets the new yum/rpm working.

# Install above RPMS

rpm -Uvh *.rpm --nodeps

# Clean and rebuild rpmdb for CentoS 5

rm -f /var/lib/rpm/__*
rpm --rebuilddb

# Clean yum files

yum clean all

# Remove deps/outdated packages

Note: You can run yum upgrade to help find deps that you need to remove.

rpm -e VFlib2 caching-nameserver autofs kudzu pcmcia-cs xorg-x11 newt-perl hal crypto-utils --nodeps

Install new CentOS 5 kernel

# If you are getting the new kernel via wget you need to do the following first.

yum upgrade wget

rpm -ivh kernel-2.6.18-8.el5.x86_64.rpm --nodeps

Remove old CentOS 4 kernel(s)

rpm -qa | grep kernel

remove 2.6.9 bits

rpm -e kernel-2.6.9-42.EL kernel-devel-2.6.9-42.EL kernel-doc-2.6.9-42.EL

Upgrade the system to CentOS 5

yum upgrade

# Install removed packages that were not reinstalled

yum install caching-nameserver autofs

# Generate list of RPMS on the system after upgrade to see what old RPMS are left

rpm -qa >Upgrade_RPM_List

# Reboot system


# Login and you should be on CentOS 5

uname -a

At this point you will need to start upgrading any extra/third party RPMS.

2023-09-11 07:22