Jump to content
Sign in to follow this  
anyweb

update fedora core 4 to 5

Recommended Posts

The basic idea is to have your system fully up-to-date. Then you should make sure that you are using the NEWEST kernel.

 

Therefore reboot your system to it if needed. Remove all the old kernels by checking:

yum -y list installed | grep kernel

 

Remove any old kernels for instance:

yum remove kernel-2.4.11*

 

Once thats done, install the release file:

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

 

The do the upgrade.

yum update
yum upgrade

 

If you get a failure. As long as the package isn't system critical, remove it.

 

If all goes well, then a reboot and you should have FC5.

Share this post


Link to post
Share on other sites

if like me you have a mixture of one cpu (kernel) and two or more cpu's (kernel-smp) kernel's installed you'll have to do the following to remove the smp kernels

 

#[root@www ~]# yum -y list installed | grep kernel
kernel.i686							  2.6.16-1.2111_FC4	  installed
kernel.i686							  2.6.16-1.2096_FC4	  installed
kernel.i686							  2.6.17-1.2141_FC4	  installed
kernel.i686							  2.6.17-1.2142_FC4	  installed
kernel-smp.i686						  2.6.17-1.2142_FC4	  installed
kernel-smp.i686						  2.6.15-1.1833_FC4	  installed
kernel-smp.i686						  2.6.17-1.2141_FC4	  installed
kernel-smp.i686						  2.6.16-1.2111_FC4	  installed
kernel-smp.i686						  2.6.11-1.1369_FC4	  installed
kernel-smp.i686						  2.6.16-1.2096_FC4	  installed

[root@www ~]# yum remove kernel-smp-2.6.15*
Setting up Remove Process
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package kernel-smp.i686 0:2.6.15-1.1833_FC4 set to be erased
--> Running transaction check

Dependencies Resolved

=============================================================================
Package				 Arch	   Version		  Repository		Size
=============================================================================
Removing:
kernel-smp			  i686	   2.6.15-1.1833_FC4  installed		  42 M

Transaction Summary
=============================================================================
Install	  0 Package(s)
Update	   0 Package(s)
Remove	   1 Package(s)
Total download size: 0
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
 Removing  : kernel-smp				   ######################### [1/1]

Removed: kernel-smp.i686 0:2.6.15-1.1833_FC4
Complete!

 

keep going until you only have the latest kernel installed in your list of kernels

 

cheers

anyweb

Share this post


Link to post
Share on other sites

Cool! :D

 

Should this work for FC5 to FC6 when it is finished?

Share this post


Link to post
Share on other sites

it should, and f.y.i i have used the above method to upgrade the https://www.linux-noob.com server (was FC4) to FC5 remotly via shh.

 

[anyweb@www ~]$ uname -a

Linux www.linux-noob.com 2.6.17-1.2187_FC5smp #1 SMP Mon Sep 11 01:32:34 EDT 2006 i686 i686 i386 GNU/Linux

[anyweb@www ~]$ cat /etc/redhat-release

Fedora Core release 5 (Bordeaux)

[anyweb@www ~]$ uptime

10:14:00 up 3 min, 2 users, load average: 0.35, 0.54, 0.24

 

 

cheers

 

anyweb

Share this post


Link to post
Share on other sites
Should this work for FC5 to FC6 when it is finished?

 

Indeed this method will be similar for all the upgrades of FC.

Share this post


Link to post
Share on other sites

well it didn't go all that easy, had to ask for help on our irc channel (thanks jy/znx/flukex) and the following commands show what I did during the process to go from fcr5 to fcr6

 

yum -y list installed | grep kernel
uname -a
w
w
yum remove kernel-2.6.20-1*
yum -y list installed | grep kernel
yum remove kernel-2.6.20-1.2316.fc5
yum remove kernel-2.6.18-1.2257.fc5
yum -y list installed | grep kernel
rpm -Uvh http://download.fedora.redhat.com/pub/fedora/linux/releases/7/Fedora/i386/os/Fedora/fedora-release-7-3.noarch.rpm
rpm -Uvh http://download.fedora.redhat.com/pub/fedora/linux/releases/7/Fedora/i386/os/Fedora/fedora-release-notes-7.0.0-1.noarch.rpm
rpm -Uvh http://download.fedora.redhat.com/pub/fedora/linux/releases/7/Fedora/i386/os/Fedora/fedora-release-7-3.noarch.rpm
vi /etc/yum.conf
cd /etc/yum.repos.d/
ls
rm livna*
rpm -Uvh http://download.fedora.redhat.com/pub/fedora/linux/releases/7/Fedora/i386/os/Fedora/fedora-release-notes-7.0.0-1.noarch.rpm
rpm -e livna-release-5-8.noarch
yum remove apt
rpm -Uvh http://download.fedora.redhat.com/pub/fedora/linux/releases/7/Fedora/i386/os/Fedora/fedora-release-notes-7.0.0-1.noarch.rpm
rpm -Uvh http://download.fedora.redhat.com/pub/fedora/linux/releases/7/Fedora/i386/os/Fedora/fedora-release-7-3.noarch.rpm
ls /etc/fedora-release
ls -ls /etc/*release*
vi /etc/fedora-release
yum -y update
ls
vi fedora-core.repo
rm freshrpms.repo
ls
cd ..
ls
vi yum.conf
cd yum.repos.d/
ls
vi fedora-updates.repo
vi /etc/redhat-release
yum update
yum clean all
yum update
rpm -qa|grep fedora-release
rpm -Uvh http://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/Fedora/RPMS/fedora-release-6-4.noarch.rpm
rpm -Uvh http://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/Fedora/RPMS/fedora-release-notes-6-3.noarch.rpm
w
ls
wget http://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/Fedora/RPMS/fedora-release-notes-6-3.noarch.rpm
wget http://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/Fedora/RPMS/fedora-release-6-4.noarch.rpm
ls
rpm -Uvh fedora-release-6-4.noarch.rpm fedora-release-notes-6-3.noarch.rpm
yum clean all
yum update
ps aux |grep yum
yum clean all
yum -y update
cd /etc/yum.repos.d/
ls
vi fedora-extras.repo
uptime
reboot

 

when i get the chance i'll document the apparent mess above :P

 

but for those of you wanting a quick fix to yum update fedora core release 5 to fedora core release 6 try this

 

wget http://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/Fedora/RPMS/fedora-release-notes-6-3.noarch.rpm
wget http://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/Fedora/RPMS/fedora-release-6-4.noarch.rpm
ls
rpm -Uvh fedora-release-6-4.noarch.rpm fedora-release-notes-6-3.noarch.rpm
yum clean all
yum update

 

cheers

anyweb

Share this post


Link to post
Share on other sites

ok i've now attempted to update this server from Fedora Core release 6 to Fedora 8

 

using the following commands

wget ftp://ftp.sunet.se/pub/Linux/distributions/fedora/linux/releases/8/Fedora/i386/os/Packages/fedora-release-notes-8.0.0-3.noarch.rpm
wget ftp://ftp.sunet.se/pub/Linux/distributions/fedora/linux/releases/8/Fedora/i386/os/Packages/fedora-release-8-3.noarch.rpm
ls -al
rpm -Uvh fedora-release-8-3.noarch.rpm fedora-release-notes-8.0.0-3.noarch.rpm
yum clean all
yum update
yum remove rhnlib up2date
yum clean all
yum update
yum remove gstreamer08-plugins
yum update
reboot

 

which has worked but not perfectly, see below

 

[root@www ~]# uname -a

Linux www.linux-noob.com 2.6.20-1.2316.fc5smp #1 SMP Fri Apr 27 20:34:56 EDT 2007 i686 i686 i386 GNU/Linux

[root@www ~]# cat /etc/redhat-release Fedora release 8 (Werewolf)

 

so how do I fix the wrong kernel being loaded...

Share this post


Link to post
Share on other sites

odd, but I had to run yum -y update again and this time it correclty applied the updates

 

[anyweb@www ~]$ uname -a

Linux www.linux-noob.com 2.6.23.15-137.fc8 #1 SMP Sun Feb 10 17:48:34 EST 2008 i686 i686 i386 GNU/Linux

[anyweb@www ~]$ cat /etc/redhat-release

Fedora release 8 (Werewolf)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...