This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.

Blog About Dedicated Servers

« | »

Fedora Core 1 to Fedora Core 2 Upgrade

Luigi Ramone | 15 December, 2005 20:08

As we have decided to go down the Fedora Path, instead of the RHEL path, we now have to contend with Fedora's really short release cycle.

To comprehend this, we will be writing how-to's for those interested to continually migrate their Systems to the newest Fedora Core releases.

Fedora Core 1 EOL's very soon, and to that end, we have prepared a painless upgrader to upgrade Fedora Core 1 systems to Fedora Core 2.

If any mods/admins view this thread, could they please sticky it.



The main advantages of this upgrade include

- 2.6.7 Kernel, bringing more security and speed to Systems (Especially P4's/Xeon's with Hyperthreading)
- Python 2.3
- RPM 4.3
- GLibc 2.3.3

and countless package upgrades providing new features and security enhancements.

Since Fedora Core 1 uses an older version of Python & RPM, if you try to use Yum to update your system (i.e. upgrade the fedora-release package, and try to

yum upgrade) things will break.

To that end, we have provided 2 base package upgrades that will update your system's base components (RPM, Python, GLibc etc) to make the remainder of the

upgrade easy.

Note: Before you start bashing away at your keyboard, there is a FULL command listing below to make the upgrade process fully automated, so just read below,

but dont skip anything as it is important.


Firstly, you need to download base package update, which can be found here http://files.oktagone.net/fedora/fc...de/base.tar.bz2 (~81MB)

If anyone has any queries as to exactly what this package contains, here is the list of files.

------------------------------

base/authconfig-4.6.2-1.i386.rpm
base/authconfig-gtk-4.6.2-1.i386.rpm
base/compat-db-4.1.25-2.1.i386.rpm
base/comps-extras-9.92-1.noarch.rpm
base/db4-4.2.52-3.1.i386.rpm
base/db4-devel-4.2.52-3.1.i386.rpm
base/expect-5.39.0-96.1.i386.rpm
base/expect-devel-5.39.0-96.1.i386.rpm
base/fedora-release-2-4.i386.rpm
base/glibc-2.3.3-27.i686.rpm
base/glibc-common-2.3.3-27.i386.rpm
base/glibc-devel-2.3.3-27.i386.rpm
base/glibc-headers-2.3.3-27.i386.rpm
base/glibc-kernheaders-2.4-8.44.i386.rpm
base/libselinux-1.11.4-1.i386.rpm
base/libselinux-devel-1.11.4-1.i386.rpm
base/libxml2-2.6.8-1.i386.rpm
base/libxml2-devel-2.6.8-1.i386.rpm
base/libxml2-python-2.6.8-1.i386.rpm
base/nscd-2.3.3-27.i386.rpm
base/pam-0.77-40.i386.rpm
base/pam-devel-0.77-40.i386.rpm
base/popt-1.9.1-0.3.i386.rpm
base/python-2.3.3-6.i386.rpm
base/python-devel-2.3.3-6.i386.rpm
base/python-docs-2.3.3-6.i386.rpm
base/python-optik-1.4.1-5.noarch.rpm
base/python-tools-2.3.3-6.i386.rpm
base/rhpl-0.143-1.i386.rpm
base/rpm-4.3.1-0.3.i386.rpm
base/rpm-build-4.3.1-0.3.i386.rpm
base/rpmdb-fedora-2-0.20040513.i386.rpm
base/rpm-devel-4.3.1-0.3.i386.rpm
base/rpm-python-4.3.1-0.3.i386.rpm
base/shadow-utils-4.0.3-21.i386.rpm
base/tcl-8.4.5-7.i386.rpm
base/tcl-devel-8.4.5-7.i386.rpm
base/tclx-8.3.5-2.i386.rpm
base/tix-8.1.4-96.1.i386.rpm
base/tix-devel-8.1.4-96.1.i386.rpm
base/tk-8.4.5-8.i386.rpm
base/tk-devel-8.4.5-8.i386.rpm
base/tkinter-2.3.3-6.i386.rpm

------------------------------

The second package is a Xfree to xorg-x11 transition pack. Since Xfree has screwed up their Distribution licensing now, Fedora and most other respectable

*nix distro's have moved from Xfree to xorg.

The package can be grabbed from http://files.oktagone.net/fedora/fc...e/xfree.tar.bz2 (~30MB)

File contents

------------------------------

xfree/xorg-x11-6.7.0-2.i386.rpm
xfree/xorg-x11-Mesa-libGL-6.7.0-2.i386.rpm
xfree/xorg-x11-font-utils-6.7.0-2.i386.rpm
xfree/xorg-x11-xfs-6.7.0-2.i386.rpm
xfree/xorg-x11-libs-6.7.0-2.i386.rpm
xfree/xorg-x11-libs-data-6.7.0-2.i386.rpm
xfree/xorg-x11-truetype-fonts-6.7.0-2.i386.rpm
xfree/xorg-x11-xauth-6.7.0-2.i386.rpm
xfree/xorg-x11-devel-6.7.0-2.i386.rpm
xfree/xorg-x11-base-fonts-6.7.0-2.i386.rpm
xfree/freetype-2.1.7-4.i386.rpm
xfree/freetype-devel-2.1.7-4.i386.rpm
xfree/chkfontpath-1.10.0-1.i386.rpm
xfree/VFlib2-2.25.6-21.i386.rpm
xfree/Glide3-20010520-30.i386.rpm
xfree/Glide3-devel-20010520-30.i386.rpm
xfree/xinitrc-3.39-1.noarch.rpm
xfree/switchdesk-4.0.3-1.noarch.rpm

------------------------------

The next step is to clean up the dependancies that yum will have problems with. Dont worry about removing these rpm's below because yum will simply reinstall

them.

rpm -e exim --force

Next, you want to get a new yum.conf so you have a "reliable" and stable update source.

Grab our tested yum.conf - http://files.oktagone.net/fedora/fc...pgrade/yum.conf

Now, we are ready to use yum. It's sexy and easy. Just type yum update, and Yum will download all the headers, and RPM's as needed. Remember to press Y once

the deps testing is done. If you have any errors and yum cannot complete due to package conflicts, please paste them so i can debug why this happens, and

give you a solution.

When yum is complete, you will need to perform a reboot to boot into the new kernel you have aquired. Before doing this, it's important to check

/boot/grub/grub.conf to see that the new kernel (2.6.7-1.494.2.2) is there.

Your grub.conf should look something like this

default=0
failsafe=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core (2.6.7-1.494.2.2)
root (hd0,0)
kernel /vmlinuz-2.6.7-1.494.2.2 ro root=LABEL=/1
initrd /initrd-2.6.7-1.494.2.2.img
title Fedora Core (2.4.22-1.2197.nptl)
root (hd0,0)
kernel /vmlinuz-2.4.22-1.2197.nptl ro root=LABEL=/1
initrd /initrd-2.4.22-1.2197.nptl.img


(Note: The failsafe line isnt necessary if you dont have it).

If it looks good, exit your text editor, and reboot.

If all went to plan, your box should be back up in a few minutes.

Once its live again, there's a few things you need to do to fix up services.

First, you want to tell cPanel to use Yum now instead of APT, so we run

touch /var/cpanel/useyum


Then, we want to fix exim, since YUM installs a standard Fedora version of it, which wont work with cPanel.

Simply grab the cPanel Exim RPM from here - and install it.
http://updates.cpanel.net/exim-cpan...xiscan.i386.rpm

rpm -Uhv exim* --force is the command you'll need to use, since exim is allready installed, and may conflict with a package called "setup"

Then, rebuild Apache using /scripts/easyapache. Option 4 is reccomended.

Now, your all done!

Go into WHM, and check your services stats. Everything should be running, and your system is now running the latest, fully updated Fedora Core 2.

If anyone needs help with this upgrade feel free to PM me, however any problems should be posted below so that others can benefit from your feedback.

Thanks!


COMMAND OUTPUT

Step 1: Setup Directory and get required files.
mkdir upgrade
cd upgrade
wget http://files.oktagone.net/fedora/fc...de/base.tar.bz2
wget http://files.oktagone.net/fedora/fc...e/xfree.tar.bz2

Step 2: verify the MD5's by typing
md5sum base.tar.bz2
md5sum xfree.tar.bz2

Step 3: Extract RPM's and upgrade them
tar -xvjpf base.tar.bz2
tar -xvjpf xfree.tar.bz2
rpm -Uhv base/*.rpm
rpm -Uhv xfree/*.rpm

Step 4: Fix Deps and run yum
rpm -e exim --force
wget http://files.oktagone.net/fedora/fc...pgrade/yum.conf -O /etc/yum.conf
yum update

Step 5: Check boot stuff
nano /boot/grub/grub.conf

Step 6: Reboot
reboot -n

Step 7: Fix Exim / Apache
touch /var/cpanel/useyum
rpm -Uhv http://updates.cpanel.net/exim-cpan...xiscan.i386.rpm --force
/scripts/easyapache


(end)

Add comment

Topic

Text

Your name

Your email address (if any)

Your personal page (if any)


authimage




Powered by Boonic, Bloogo & pLog
This Blog does not have any affiliation nor relation with the mentioned companies. All the logotipos, trade names and images are property of the companies that registered them.