Upgrade FC4 to FC5 using YUM
Keeping in mind that mine is a highly unusual system, such as a computer hacker, applications developer or network security student might be running. Your system may do things entirely differently. I hope it would be smoother for you than this. The fewer applications you have installed on your machine, the fewer need to be upgraded.
1. Download and install the Fedora Core 5 version of fedora-release from one of the Fedora Core mirrors.
Example:
# rpm -Uvh
http://download.fedora.redhat.com/pu...5-5.noarch.rpm
2. Upgrade to Fedora Core 5. the -y just means "unattended mode". When yum would ask for a yes or no answer, the answer is automatically "yes."
# yum -y upgrade
You now find yourself with a mixed FC4/FC5 installation. Reboot works but some packages are still FC4. Upgrade aborts because of dependency errors. The GUI is working, though.
3. Handling dependency errors. I used clean all to clear up some of the local database (this speeded up the process of getting to the dependency errors)
yum -y clean all
4. Find out how many old kernels are still hanging around. These can cause dependency issues as some packages are no longer included at all in the new version, so there are no upgrades available for them.
[root@conquistador ~]# rpm -q kernel kernel-smp
kernel-2.6.11-1.1369_FC4
kernel-2.6.14-1.1656_FC4
kernel-2.6.15-1.1830_FC4
kernel-2.6.15-1.1831_FC4
kernel-2.6.15-1.1833_FC4
kernel-2.6.16-1.2069_FC4
kernel-2.6.16-1.2096_FC4
kernel-2.6.16-1.2107_FC4
kernel-2.6.16-1.2108_FC4
kernel-2.6.16-1.2111_FC4
kernel-2.6.16-1.2115_FC4
5. Upgrade the Kernel to the FC5 kernel
yum update kernel
[aborted on bad dependencies] Trying to remove the oldest kernels
rpm -e kernel-2.6.11* kernel-2.6.14* kernel-2.6.15-1.1830*
rpm -e kernel-2.6.16-1.2069_FC4 kernel-2.6.16-1.2096_FC4 kernel-2.6.16-1.2107_FC4 kernel-2.6.16-1.2108_FC4 kernel-2.6.16-1.2111_FC4
[rpm -e will not use a wildcard to take multiple kernels. I just used the * to avoid having to type the whole file name]
Clean up the Cache again
yum clean all
Still having dependency errors. Especially interesting because there are many packages with dependency problems which are not on the machine. They only appear in the yum header cache and up2date cache
yum -yt upgrade kernel
[the -t is to tolerate errors.. maybe the thing will allow the installation even though there are non-existent packages whose dependencies are not there either.] [still fails]
reboot
[no effect noted]
Obtaining Kernel Source through 'yum'
from
http://www.mjmwired.net/resources/mj...#kernelheaders
There are yum utilities which will download the LATEST kernel source.
yum install yum-utils
[this did a yum-utils install]
yumdownloader --source /home/wolf/Desktop/kernel-2.6.15-1.2054_FC5.src.rpm
[didn't work, used rpm ivh to install
rpmbuild -bp --target=$(uname -m) /usr/src/redhat/SPECS/kernel-2.6.spec
[to set up. I am now going to reboot again to see if the new kernel is enacted.]
Still showing the old kernel, but yum update shows there are over 600 updates available and they are (at least some are) FC5. I am going to try to do this update in cli only, as the whole gui is so soupy when you are doing a yum operation. Uses all the RAM.. no virtual memory. [ctrl] [alt] [F1]
I am now stuck. I have put over 2 days into figuring this out, and kept meticulous notes and it is not working.
Help!!
? yum -y upgrade b* c*
--The ? means I am not there yet. b* and c* are a way to get to the failure quicker by only upgrading packages that start with a given letter, and this seems to work.