Remote upgrade of a RedHat 9 server into Fedora Core X

Where X = 8 and arch = i386.

I am not really a fan of RedHat like distros, but I had once this pretty old server running RedHat 9, which was unable to have any more updates when Fedora Legacy decided to stop it after a while of great job.

So this is my quick HOWTO based on notes from this website : http://www.brandonhutchinson.com/Upgrading_Red_Hat_Linux_with_yum.html with a few add-ons.

Step 1 : RedHat 9 to Fedora core 1

rpm -Uvh http://download.fedora.redhat.com/pub/fedora/linux/core/1/i386/os/Fedora/RPMS/yum-2.0.4-2.noarch.rpm
rpm -Uvh http://download.fedora.redhat.com/pub/fedora/linux/core/1/i386/os/Fedora/RPMS/fedora-release-1-3.i386.rpm
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=fedora-release
tolerant=1
exactarch=1

[base]
name=Fedora Core $releasever - $basearch - Base
baseurl=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/$releasever/i386/os
yum -y upgrade

Step 2 : Fedora core 1 to Fedora core 2

rpm -q kernel kernel-smp
rpm -e ...
yum clean all
rpm -Uvh http://download.fedora.redhat.com/pub/fedora/linux/core/2/i386/os/Fedora/RPMS/yum-2.0.7-1.1.noarch.rpm http://download.fedora.redhat.com/pub/fedora/linux/core/2/i386/os/Fedora/RPMS/fedora-release-2-4.i386.rpm
rpm -e apt
yum upgrade yum python rpm-python rpm glibc glibc-common redhat-config-\* XFree86\* libxml2\*
yum -y upgrade

Step 3 : Fedora core 2 to Fedora core 3

rpm -e up2date
wget http://fedora.redhat.com/about/security/4F2A6FD2.txt
rpm --import 4F2A6FD2.txt
wget http://fedora.glorb.com/core/3/i386/os/Fedora/RPMS/fedora-release-3-8.i386.rpm
wget http://fedora.glorb.com/core/3/i386/os/Fedora/RPMS/yum-2.1.11-3.noarch.rpm
rpm -Uvh fedora-release-3-8.i386.rpm yum-2.1.11-3.noarch.rpm 
rpm -Uvh --force fedora-release-3-8.i386.rpm yum-2.1.11-3.noarch.rpm

rpm -q kernel kernel-smp

rpm -e kernel-2.4...
yum -y upgrade

Step 4 : Fedora core 3 to Fedora core 4

rpm -Uvh http://download.fedora.redhat.com/pub/fedora/linux/core/4/i386/os/Fedora/RPMS/fedora-release-4-2.noarch.rpm
yum -y upgrade mkinitrd
yum -y update kernel
SELINUX=disabled

rpm -q kernel kernel-smp

rpm -e kernel...
yum -y upgrade

Step 5 : Fedora Core 4 to Fedora core 5

rpm -Uvh http://download.fedora.redhat.com/pub/fedora/linux/core/5/i386/os/Fedora/RPMS/fedora-release-5-5.noarch.rpm

Step 6 : Fedora Core 5 to Fedora core 6

rpm -Uhv http://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/Fedora/RPMS/fedora-release-6-4.noarch.rpm http://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/Fedora/RPMS/fedora-release-notes-6-3.noarch.rpm
yum -y update

Step 7 : Fedora Core 6 to Fedora core 7

rpm -Uvh http://mirrors.ircam.fr/pub/fedora/linux/releases/7/Fedora/i386/os/Fedora/fedora-release-notes-7.0.0-1.noarch.rpm
rpm -Uvh http://mirrors.ircam.fr/pub/fedora/linux/releases/7/Fedora/i386/os/Fedora/fedora-release-7-3.noarch.rpm
yum -y update

Step 8 : Fedora Core 7 to Fedora core 8

rpm -Uvh http://mirrors.ircam.fr/pub/fedora/linux/releases/8/Fedora/i386/os/Packages/fedora-release-8-3.noarch.rpm
yum -y update