hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Hosting Talk Tutorials : Hosting Software and Control Panels Tutorials : Easy Fedora Core 1 to Fedora Core 2 update
Reply

Forum Jump

Easy Fedora Core 1 to Fedora Core 2 update

Reply Post New Thread In Hosting Software and Control Panels Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 08-07-2004, 08:30 AM
oktagone oktagone is offline
Junior Guru Wannabe
 
Join Date: Nov 2003
Posts: 57

Easy Fedora Core 1 to Fedora Core 2 update


As we have decided to go down the Fedora Path, instead of the RHEL path, we now have to contend with Fedora's rediculously 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/fc1...e/base.tar.bz2 (~81MB)

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

Quote:
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/fc1.../xfree.tar.bz2 (~30MB)

File contents

Quote:
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/fc1...grade/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-cpane...iscan.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/fc1...e/base.tar.bz2
wget http://files.oktagone.net/fedora/fc1.../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/fc1...grade/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-cpane...iscan.i386.rpm --force
/scripts/easyapache


(end)

__________________
OktaGone Publishing
http://www.oktagone.com/
100% Owned Australian Network



Sponsored Links
  #2  
Old 08-29-2004, 11:42 AM
driver51 driver51 is offline
Temporarily Suspended
 
Join Date: Feb 2003
Location: uk
Posts: 21
Shouldnt this be in either technical how-tos or dedicated server how-tos?

As its not related to a cp.

  #3  
Old 08-30-2004, 03:02 AM
tichuot tichuot is offline
Registered User
 
Join Date: Oct 2002
Posts: 18
I am getting the following errors while doing "yum update"

root@weed [/src/kernel]# yum update
Gathering header information file(s) from server(s)
Server: Fedora Core 2 - i386 - Base
Server: Fedora Core 2 - i386 - Released Updates
Finding updated packages
Downloading needed headers
Resolving dependencies
.Package php needs libgd.so.1.8, this is not available.
Package php needs libgd.so.1.8, this is not available.
Package php needs libgd.so.1.8, this is not available.
Package php needs libgd.so.1.8, this is not available.
Package php needs libpspell-modules.so.1, this is not available.
Package php needs libpspell-modules.so.1, this is not available.
Package php needs libpspell.so.4, this is not available.
Package php needs libpspell.so.4, this is not available.
Package php needs libpspell-modules.so.1, this is not available.
Package php needs libpspell-modules.so.1, this is not available.
Package php needs libpspell.so.4, this is not available.
Package php needs libpspell.so.4, this is not available.
Package iftop needs libpcap.so.0.6.2, this is not available.
Package snort needs libpcap.so.0.6.2, this is not available.
Package snort-mysql needs libpcap.so.0.6.2, this is not available.
Package php-imap needs libcom_err.so.3, this is not available.
Package php-imap needs libcom_err.so.3, this is not available.
Package imap needs libcom_err.so.3, this is not available.
Package imap needs libcom_err.so.3, this is not available.
Package pine needs libcom_err.so.3, this is not available.
Package pine needs libcom_err.so.3, this is not available.
Package php needs libcom_err.so.3, this is not available.
Package php needs libcom_err.so.3, this is not available.
Package php-imap needs libcom_err.so.3, this is not available.
Package php-imap needs libcom_err.so.3, this is not available.
Package imap needs libcom_err.so.3, this is not available.
Package imap needs libcom_err.so.3, this is not available.
Package pine needs libcom_err.so.3, this is not available.
Package pine needs libcom_err.so.3, this is not available.
Package php needs libcom_err.so.3, this is not available.
Package php needs libcom_err.so.3, this is not available.

Sponsored Links
  #4  
Old 09-02-2004, 01:34 AM
oktagone oktagone is offline
Junior Guru Wannabe
 
Join Date: Nov 2003
Posts: 57
If you have RPM's like that, you need to remove them.

__________________
OktaGone Publishing
http://www.oktagone.com/
100% Owned Australian Network

  #5  
Old 09-12-2004, 11:40 PM
EviL_SmUrF EviL_SmUrF is offline
WHT Addict
 
Join Date: May 2004
Posts: 148
problems:

[root@li5-11 update]# cd base
[root@li5-11 base]# rpm -Uhv *
warning: authconfig-4.6.2-1.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
pygtk2-libglade is needed by authconfig-gtk-4.6.2-1
zlib-devel is needed by libxml2-devel-2.6.8-1
patch >= 2.5 is needed by rpm-build-4.3.1-0.3
libX11.so.6 is needed by tclx-8.3.5-2
libX11.so.6 is needed by tix-8.1.4-96.1
libX11.so.6 is needed by tk-8.4.5-8
XFree86-devel is needed by tk-devel-8.4.5-8
libX11.so.6 is needed by tkinter-2.3.3-6
/usr/bin/python2.2 is needed by (installed) redhat-config-network-tui-1.3.10-1
librpm-4.2.so is needed by (installed) apt-0.5.15cnc2-1.fr
librpmdb-4.2.so is needed by (installed) apt-0.5.15cnc2-1.fr
librpmio-4.2.so is needed by (installed) apt-0.5.15cnc2-1.fr
[root@li5-11 base]#


:/

Reply

Related posts from TheWhir.com
Title Type Date Posted
Red Hat Takes Active Role in CentOS Project to Drive New Technology Adoption Web Hosting News 2014-01-08 12:00:22
Inerol Solutions Launches XEN VPS Hosting Service Web Hosting News 2013-04-08 12:32:06
Colocation America to Support Fedora Linux Project with Dedicated Server Web Hosting News 2012-08-17 09:49:26
Web Host A2 Hosting Launches Customizable VPS Hosting Plans Web Hosting News 2012-06-07 15:11:57
Students Contribute to Joomla through Google Summer of Code Program Web Hosting News 2012-05-08 15:22:35


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?