thanks to znx for the link,
http://www.brandonhu...x_with_yum.html
cheers
anyweb
Page 1 of 1
update fedora core 4 to 5 heres how.
#1
Posted 02 October 2006 - 09:21 PM
#2
Posted 03 October 2006 - 12:46 AM
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:
Remove any old kernels for instance:
Once thats done, install the release file:
The do the 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.
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.
#3
Posted 03 October 2006 - 06:39 AM
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
keep going until you only have the latest kernel installed in your list of kernels
cheers
anyweb
#[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
#4
Posted 03 October 2006 - 07:22 AM
Cool! 
Should this work for FC5 to FC6 when it is finished?
Should this work for FC5 to FC6 when it is finished?
My website | Portfolio
FOSSwire -- all about free and open source software, featuring tips, tricks, tutorials, reviews, articles and all the latest news from the free software universe.
FOSSwire -- all about free and open source software, featuring tips, tricks, tutorials, reviews, articles and all the latest news from the free software universe.
#5
Posted 03 October 2006 - 09:14 AM
it should, and f.y.i i have used the above method to upgrade the http://www.linux-noob.com server (was FC4) to FC5 remotly via shh.
cheers
anyweb
Quote
[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
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
#7
Posted 13 June 2007 - 10:40 PM
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
when i get the chance i'll document the apparent mess above
but for those of you wanting a quick fix to yum update fedora core release 5 to fedora core release 6 try this
cheers
anyweb
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
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
#8
Posted 20 February 2008 - 02:56 PM
ok i've now attempted to update this server from Fedora Core release 6 to Fedora 8
using the following commands
which has worked but not perfectly, see below
so how do I fix the wrong kernel being loaded...
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
Quote
[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)
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...
#9
Posted 20 February 2008 - 04:04 PM
odd, but I had to run yum -y update again and this time it correclty applied the updates
Quote
[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)
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)
Page 1 of 1

Sign In
Register
Help


MultiQuote

