choon
05-03-2004, 06:09 AM
Please note that I am using kernel which I compiled from source and not using any stocked kernel from Red Hat Linux thus if you are using stock Red Hat Linux kernel, then the steps will be different.
Step 1: Download the fedora yum package
wget -c http://download.fedora.redhat.com/pub/fedora/linux/core/1/i386/os/Fedora/RPMS/yum-2.0.4-2.noarch.rpm -P /tmp
Step 2: Install yum package
rpm -ivh /tmp/yum-2.0.4-2.noarch.rpm
rm -f /tmp/yum-2.0.4-2.noarch.rpm
Step 3: Backup original /etc/yum.conf as /etc/yum.conf.original
cp /etc/yum.conf /etc/yum.conf.original
Step 4: Replace /etc/yum.conf as below
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=fedora-release
tolerant=1
exactarch=1
[fedora-os-rhl-9]
name=Fedora Project Fedora 1 Stock OS Mirror Repository
baseurl=http://download.fedora.us/fedora/fedora/1/i386/yum/os
[fedora-stable-9]
name=Fedora Project Stable RPMS for FEDORA
baseurl=http://download.fedora.us/fedora/fedora/1/i386/yum/stable
Issue this command to do it:
echo "[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=fedora-release
tolerant=1
exactarch=1
[fedora-os-rhl-9]
name=Fedora Project Fedora 1 Stock OS Mirror Repository
baseurl=http://download.fedora.us/fedora/fedora/1/i386/yum/os
[fedora-stable-9]
name=Fedora Project Stable RPMS for FEDORA
baseurl=http://download.fedora.us/fedora/fedora/1/i386/yum/stable" > /etc/yum.conf
Step 5: Remove redhat-config-securitylevel, pine, php, httpd, httpd-manual packages
rpm -e redhat-config-securitylevel pine httpd httpd-manual php
Step 6: Upgrade to Fedora now
yum upgrade
Step 7: Replace back the original /etc/yum.conf
mv /etc/yum.conf.original /etc/yum.conf
Step 8: Update Fedora
yum update
Step 9: Update WHM/cPanel
/scripts/upcp
Step 10: Update exim
/scripts/exim4
Step 11: Recompile Apache and PHP
/scripts/easyapache
Step 12: Reboot
reboot
To use up2date, issue this command to import the GPG key:
rpm --import /usr/share/rhn/RPM-GPG-KEY-fedora
Then run up2date to update:
up2date -u
Step 1: Download the fedora yum package
wget -c http://download.fedora.redhat.com/pub/fedora/linux/core/1/i386/os/Fedora/RPMS/yum-2.0.4-2.noarch.rpm -P /tmp
Step 2: Install yum package
rpm -ivh /tmp/yum-2.0.4-2.noarch.rpm
rm -f /tmp/yum-2.0.4-2.noarch.rpm
Step 3: Backup original /etc/yum.conf as /etc/yum.conf.original
cp /etc/yum.conf /etc/yum.conf.original
Step 4: Replace /etc/yum.conf as below
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=fedora-release
tolerant=1
exactarch=1
[fedora-os-rhl-9]
name=Fedora Project Fedora 1 Stock OS Mirror Repository
baseurl=http://download.fedora.us/fedora/fedora/1/i386/yum/os
[fedora-stable-9]
name=Fedora Project Stable RPMS for FEDORA
baseurl=http://download.fedora.us/fedora/fedora/1/i386/yum/stable
Issue this command to do it:
echo "[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=fedora-release
tolerant=1
exactarch=1
[fedora-os-rhl-9]
name=Fedora Project Fedora 1 Stock OS Mirror Repository
baseurl=http://download.fedora.us/fedora/fedora/1/i386/yum/os
[fedora-stable-9]
name=Fedora Project Stable RPMS for FEDORA
baseurl=http://download.fedora.us/fedora/fedora/1/i386/yum/stable" > /etc/yum.conf
Step 5: Remove redhat-config-securitylevel, pine, php, httpd, httpd-manual packages
rpm -e redhat-config-securitylevel pine httpd httpd-manual php
Step 6: Upgrade to Fedora now
yum upgrade
Step 7: Replace back the original /etc/yum.conf
mv /etc/yum.conf.original /etc/yum.conf
Step 8: Update Fedora
yum update
Step 9: Update WHM/cPanel
/scripts/upcp
Step 10: Update exim
/scripts/exim4
Step 11: Recompile Apache and PHP
/scripts/easyapache
Step 12: Reboot
reboot
To use up2date, issue this command to import the GPG key:
rpm --import /usr/share/rhn/RPM-GPG-KEY-fedora
Then run up2date to update:
up2date -u