Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Resources > Guides & Solutions (No Questions)
FedoraForum Search

Forgot Password? Join Us!

Guides & Solutions (No Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 29th December 2006, 04:51 PM
SharedMedia Offline
Registered User
 
Join Date: Nov 2004
Location: Ontario Canada
Age: 42
Posts: 85
Post How-To Upgrade Guide: Upgrade your FC4 or FC5 Server to FC6

Current Revision Date: Friday, December 29, 2006

For a few years now, I have successfully been running a home server that started with Fedora Core 4 (Stenze 2005), which resides behind a small firewall (d-link 514 b router).

Reading many snippets of how-to’s, from various websites, not only got me confused; but I got ticked off a lot when I was almost done setting up the box… it didn’t work. This How-To, will (hopefully) guide you on upgrading your FC4 or FC5 to FC6

Time Required: (depending on the hardware) 1.5 hours or less..
Our Wanted OS: Fedora Core 6
Our Updater: YUM
What You Need: Patience, pot of coffee, Fedora Core 4 or 5 on old working hardware, working Internet connection on a LAN…

Update FC4 to FC5
OK - I'm at the point where I have a machine that has been using FC4 on it that I want to upgrade to FC5 or better yet FC6. I can’t afford to blow the OS away and start over, all my application installs and settings, databases and configurations would be lost. I have NO CDr’s left or DVDr’s to burn the ISO’s. Before I began, I google’d "yum upgrade FC4 to FC5" and saw a number of links to people who have tried this and had MANY MANY problems - as did I - so I discovered. So to hopefully save you the trouble I went through, I recorded the errors and whipped up this guide.

Upgrade Step 1 – First I needed to get all the latest FC4 updates including the latest kernel using YUM. We will run some commands, clean the YUM cache and perform some updates

• yum –y update

IF you have FEDORAFAQ installed; a conflict with yum-fedorafaq may come up, so remove this package.
• yum -y remove yum-fedorafaq

Then I cleaned YUM's cache
• yum clean all

Next, based on advice found in a couple of links, I removed all the extra kernels from the system to prevent kernel overload. (It’s safe) Query the current kernel(s) if any extras are present.

• rpm -q kernel

Then for each kernel other than the latest I ran the command to remove them

• yum -y erase kernel-xxx-xxx-xx

Then I installed the FC5 release RPM from the fedora website
(link may have changed at time of writing) PS - Theres a SPACE in the HTTP to avoid the URL tage in posting

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

Then I updated the YUM tool as the new one is much faster

• yum -y update yum

Then I ran a kernel update which will drive much of the rest of the software to update. ** NOTE- The following errors are ones I encountered and MAY not be present to you. Dependency errors vary and you will have to satisfy them by installing OR removing applications to satisfy the kernel update request.

• yum update kernel

This produced a number of dependencies that had to be fixed. So as YUM listed the deps, I recorded the applications and removed them. IF I needed them later on, I would just yum them back on.

• yum remove pcmcia-cs
• yum remove sane-backends
• yum remove linuxwacom
• yum remove xorg-x11
• yum remove ImageMagick
• yum remove synaptics
• yum remove xorg-x11-xfs

I then re-ran the kernel update command to see what removing these items had fixed and what else was left as far as deps go. Sure enough, more errors!

• yum update kernel

Error: Missing Dependency: hotplug is needed by package udev
Error: Missing Dependency: hotplug >= 2001_04_24-13 is needed by package gphoto2
Error: Missing Dependency: libssl.so.5 is needed by package iiimf-libs
Error: Missing Dependency: howl = 0.9.8 is needed by package howl-libs
Error: Missing Dependency: iiimf-libs = 1:12.2-4.fc4.2 is needed by package iiimf-libs-devel
Error: Missing Dependency: xorg-x11-libs = 6.8.2-37.FC4.49.2.1 is needed by package xorg-x11-devel
Error: Missing Dependency: XFree86-libs >= 4.2.99 is needed by package libgnomeui
Error: Missing Dependency: /usr/X11R6/lib/X11/XKeysymDB is needed by package openmotif


Removing udev is pretty much a non-starter - the system would not run and you would be out of a server - so let's nibble around the edges and remove dependency errors and try to find why hotplug is needed.

• yum provides hotplug

And here is why : pam_usb-hotplug.i386
You can try installing it with YUM but the errors still show up, so let's remove as much as we can that doesn't actually break the system.

• yum remove iiimf-libs iiimf-libs-devel howl-libs xorg-x11-devel libgnomeui openmotif

And now install hotplug to satisfy the deps noted

• yum install pam_usb-hotplug.i386

Lots of things get updated - but it runs to completion!!! Now let's see if the update to the kernel will run now that we have satisfied all the errors and deps reported.

• yum update kernel

Again, we struggle with errors listed below. DON’T DISPAIR, grab a cuppa’ java and keep going…It WILL WORK!

Error: Missing Dependency: hotplug >= 2001_04_24-13 is needed by package gphoto2
Error: Missing Dependency: hotplug is needed by package udev


SIGH… - so remove gphoto2

• yum remove gphoto2

Re-Run the kernel update command again…

• yum update kernel

Hey! This time it worked! NO ERRORS - Now reboot the server “reboot –n” for the new kernel to be used.

** NOTE – IF you have dual NIC’s, the order the Ethernet Cards when the server came back up was in different order, so I had to log onto the console and change the network init stuff in /etc/sysconfig/network-scripts to use eth1 instead of eth0 - minor but interesting.

Now let's do a full FC4 update and see what happens. ** NOTE – my packages are different so you may have more or less to update.

• yum –y update

Transaction Summary
Install 42 Package(s)
Update 507 Package(s)
Remove 0 Package(s)

Hey! That's it - done! OK - I have to put some packages back in - ImageMagick and gimp for example - but that's fairly minor and easy. You should now have an updated FC5 Server with all of your settings in tact. Test drive all your apps and with any luck, your server is now current.

Upgrade FC5 to FC6 – Now that Fedora Core 6 is available it is time to upgrade those old crusty FC5 installs. To upgrade from FC5 you can follow these steps:

You may be able to skip this step but I did a YUM UPDATE on FC5 first to make sure everything there was up to date and worked before moving to FC6. Since we just did them with the guide above; we can now go to our next adventure of upgrading FC5 to FC6. Its actually easier and faster then FC4 to FC5.

• Do a "yum clean all" to remove all the old FC5 YUM information.
• Install the fedora-release for Fedora Core 6 using the following rpm command:
PS - Theres a SPACE in the HTTP to avoid the URL tage in posting ** NOTE – you need to add BOTH URLs on the same command

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

• Run the yum update: yum -y update.

I didn’t have to remove any packages to get past dependency issues, however; IF YOU DO… remove them, and then just added them back after the update.

VOILA! Our server has been given an extreme makeover from FC4 to FC6, verify your settings and applications and walk away.. GOOD JOB!
Attached Thumbnails
Click image for larger version

Name:	kernel remove.JPG
Views:	435
Size:	45.6 KB
ID:	10929   Click image for larger version

Name:	kernel remove p2.JPG
Views:	382
Size:	92.9 KB
ID:	10930   Click image for larger version

Name:	Fedora FC5-FC6 Upgrade.JPG
Views:	397
Size:	113.6 KB
ID:	10931   Click image for larger version

Name:	Fedora FC5-FC6 Upgrade p2.JPG
Views:	384
Size:	134.3 KB
ID:	10932   Click image for larger version

Name:	Fedora FC5-FC6 Upgrade p3.JPG
Views:	443
Size:	163.9 KB
ID:	10933  

__________________
Shared Media
Linux Redhat OpenSource Contributor
" Have you hugged a Penguin today.."

Last edited by SharedMedia; 29th December 2006 at 04:54 PM. Reason: Attachment
Reply With Quote
  #2  
Old 8th January 2007, 09:33 PM
PSG1 Offline
Registered User
 
Join Date: Jun 2004
Location: Far from everybody
Posts: 37
This is great How to... I just upgraded my FC5 box to FC6 using YUM. The only problem i had: Machine hang on the reboot. It stuck on iptables module and it would not move. I had to do hard reset. Otherwise everything else worked perfect. Not only this. Now I dont have to perform any updates because everything was installed with new packages. Weeee.
Thank you SharedMedia....that is great How-To
Reply With Quote
  #3  
Old 9th January 2007, 06:55 PM
Stlgera Offline
Registered User
 
Join Date: Mar 2005
Location: Stockholm / Sweden
Age: 36
Posts: 60
Quote:
Originally Posted by SharedMedia
Current Revision Date: Friday, December 29, 2006
• Run the yum update: yum -y update.

I didn’t have to remove any packages to get past dependency issues, however; IF YOU DO… remove them, and then just added them back after the update.

VOILA! Our server has been given an extreme makeover from FC4 to FC6, verify your settings and applications and walk away.. GOOD JOB!
I'm trying to follow your instruction. Upgrade vom FC5 to FC6.
At the last point where you have tu run: yum -y update, there I get the following error:

Quote:
[root@linux steffen]# yum update
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
dries [1/6]
core [2/6]
macromedia [3/6]
updates [4/6]
freshrpms [5/6]
extras [6/6]
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 381 kB 00:01
ftp://falkor.skane.se/pub/mirrors/fe...rimary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/primary.xml.gz from updates: [Errno 256] No more mirrors to try.
What to do now?

My yum.conf file looks like:
Quote:
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
/Stlgera
__________________
Server
Pentium II 400 MHz, 384 MB RAM, 40 GB IDE HD
Fedora Core 6
--------------------------------
Fujitsu Siemens Amilo M1425
Intel Centrino 1.4GHz processor, 512 MB RAM, 60 GB IDE HD
Dual-Booting: XP / Ubuntu 6.10

Last edited by Stlgera; 9th January 2007 at 07:44 PM.
Reply With Quote
  #4  
Old 10th January 2007, 09:25 PM
Stlgera Offline
Registered User
 
Join Date: Mar 2005
Location: Stockholm / Sweden
Age: 36
Posts: 60
Finally I fixed it.
I just waited one day, and tried it today once again. Everything was updated. Reboot without any problem. Now I'm running FC 6.
Great How to do! Thanks

/Stlgera
__________________
Server
Pentium II 400 MHz, 384 MB RAM, 40 GB IDE HD
Fedora Core 6
--------------------------------
Fujitsu Siemens Amilo M1425
Intel Centrino 1.4GHz processor, 512 MB RAM, 60 GB IDE HD
Dual-Booting: XP / Ubuntu 6.10
Reply With Quote
  #5  
Old 13th January 2007, 05:12 PM
Gualicho Offline
Registered User
 
Join Date: Jun 2006
Location: Argentina
Posts: 49
Hello, I have a FC5 and wanted to upgrade to FC6... i have an xgl compiz server running, will this upgrade brake anything at all? I don't want to start configuring everything again...
Reply With Quote
  #6  
Old 14th January 2007, 06:49 AM
Stlgera Offline
Registered User
 
Join Date: Mar 2005
Location: Stockholm / Sweden
Age: 36
Posts: 60
For me, every configuration I made before the upgrade, was still set and used when the upgrade was finished.
- Webserver (Apache)
- FTP-server (vsftpd)
- SAMBA settings
- CUPS settings
- Firewall settings
Everything as still as configured before the upgrade.

/Stlgera
__________________
Server
Pentium II 400 MHz, 384 MB RAM, 40 GB IDE HD
Fedora Core 6
--------------------------------
Fujitsu Siemens Amilo M1425
Intel Centrino 1.4GHz processor, 512 MB RAM, 60 GB IDE HD
Dual-Booting: XP / Ubuntu 6.10
Reply With Quote
  #7  
Old 16th January 2007, 04:56 AM
Gualicho Offline
Registered User
 
Join Date: Jun 2006
Location: Argentina
Posts: 49
Thanks! I'll try it then...
Reply With Quote
  #8  
Old 25th January 2007, 09:46 PM
FedoX Offline
Registered User
 
Join Date: Jul 2005
Posts: 45
FC4->FC6: Linux doesnt start KDE/GNOME

After roaming for sometime I found this How-to as a nicely documented source for updating my FC4 install to FC6.
I followed all the steps mentioned in here. After doing FC4->FC5->FC6 upgrade I restarted the system. But now Fedora doesnt start KDE or GNOME nor the splash screen, instead it goes into command prompt.
In the grub.conf I can see FC4,FC5,FC6 and Windows (as I have a dualboot) being registered.
Please help me in resolving this matter.
What is the problem?
Do I need to fix something in my configurations?
Do I still need to install something?
Should I erase FC4 and FC5 kernels or I can keep them and ofcourse use them?
Appreciate your quick response, as I am eager to see FC6 in action
Thank you inadvance for your inputs,
fedox
Reply With Quote
  #9  
Old 25th January 2007, 09:56 PM
Gualicho Offline
Registered User
 
Join Date: Jun 2006
Location: Argentina
Posts: 49
check /etc/fstab that init 5 is the default... or try at the prompt sudo /sbin/init 5
Reply With Quote
  #10  
Old 26th January 2007, 02:40 AM
FedoX Offline
Registered User
 
Join Date: Jul 2005
Posts: 45
Thank you for your suggestion.
This is not helping. I almost there but I dont know why Fedora is not starting in a normal mode.
Reply With Quote
  #11  
Old 11th December 2009, 01:47 PM
SharedMedia Offline
Registered User
 
Join Date: Nov 2004
Location: Ontario Canada
Age: 42
Posts: 85
windows_xp_2003ie
Back to Chat... hello Everyone!, I will be updating some docs and how-to's for Fedora 12... check back soon!
__________________
Shared Media
Linux Redhat OpenSource Contributor
" Have you hugged a Penguin today.."
Reply With Quote
Reply

Tags
fc4, fc5, fc6, guide, howto, server, upgrade

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to upgrade ONLY the xorg-server? pepe123 Using Fedora 0 2nd July 2008 11:55 PM
Redhat 9 server upgrade to Fedora 7 server biker_badger Servers & Networking 0 13th August 2007 04:40 PM
Upgrade server from FC4? epkulse Servers & Networking 6 8th July 2007 07:26 PM
Server Upgrade ewdi News 12 4th October 2004 12:52 AM


Current GMT-time: 10:34 (Saturday, 01-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Sint-Genesius-Rode Travel Photos - Staunton - Luau Travel Photos on Instagram