How to Upgrade
Fermi Linux 7.1.x to Fermi Linux 7.3.x
via yum
Rewritten Dec. 5, 2003. For old instructions (which work, but I don't feel
are a sequence of steps
go here.)
Basic Steps
These steps must be done as root.
Please have someone around who knows about LILO so they can double check your /etc/lilo.conf at the
appropriate time.
- Back everything up somehow.
- Make sure you have LOTS of room for /var/cache - 400Meg to 1000Meg should do.
- Get yum on 7.1.1 machine. If yum is already installed, skip this step
- yum update yum
- Get rid of your 2.4.3-12 kernels. (kernel-2.4.3-12 and kernel-smp-2.4.3-12)
- Check to see what kernels you have
rpm -q kernel kernel-smp
kernel-2.4.20-18.7
kernel-2.4.3-12
kernel-smp-2.4.3-12
kernel-smp-2.4.20-18.7
- If your only kernel(s) are the 2.4.3-12 kernel(s) you will need
to update to a newer kernel before removing the bad kernel.
yum -c /etc/yum.conf.711 update
yum -c /etc/yum.conf.711 clean all
- rpm -e kernel-2.4.3-12
rpm -e kernel-smp-2.4.3-12
- Edit /etc/yum.conf to look like
this file.
- Run 'yum -d0 list nedit' to test.
yum -d0 list nedit
- yum remove "ssh*"
yum remove "openssh*"
warning If you are logged in via ssh, this can be a little nerve
racking, because you have just removed the program you are logged in with. Rest assured that you will still be connected.
Just don't log out until you have re-installed openssh.
- yum upgrade (this will take a while)
It is possible that this command will not work because of unresolved dependancies. So far the
ones I have seen are kppp, libkscan and kooka. If this happens you have a couple choices.
- Remove the offending rpm's, then try it again.
yum remove kooka
yum remove kdenetwork-ppp (if you are having problems with kppp)
yum upgrade
- Put openssh back on (see next step) and do a
regular upgrade
- Put openssh back on (see next step), change your yum.conf back, and live in 7.1.1
- yum install "openssh*"
- Double check /etc/lilo.conf and re-run lilo.
/sbin/lilo
- yum install zz_fermi-logos zz_dhcp_resolv
- /sbin/reboot
- yum install zz_sshd_aklog
- Install whatever packages you wish, especially those that you
uninstalled in previous steps.
yum install kooka
Extra Info on steps
These steps must be done as root.
- Back everything up somehow.
- Make sure you have LOTS of room for /var/cache - 400Meg to 1000Meg (depending on how much stuff
you have)
- Get yum on 7.1.1 machine. If yum is already installed, skip this step
- yum update yum
- Get rid of old kernels you are not using. (ie. rpm -e kernel-2.4.3-12)
This is because they were compiled under Fermi Linux 7.1.1, which might make them incompatable.
although we have really only had a problem with one, which was kernel-2.4.3-12. But it will save
room to clean the old ones up.
- uname -r
2.4.20-18.7smp
- rpm -q kernel kernel-smp
kernel-2.4.18-27.7.x
kernel-2.4.9-31
kernel-2.4.20-18.7
kernel-smp-2.4.9-31
kernel-smp-2.4.18-27.7.x
kernel-smp-2.4.20-18.7
- rpm -e kernel-2.4.9-31 kernel-smp-2.4.9-31 kernel-2.4.18-27.7.x kernel-smp-2.4.18-27.7.x
note: If uname shows you are running a
smp kernel, do NOT get rid of the regular kernel of the same number.
If your only kernel is one of the orginal 7.1.1 kernels (2.4.3-12) then
you will have a conflict when you try to update. This is because of the
change in the packaging of the kernels.
How to work around this
- yum -c /etc/yum.conf.711 update
- yum -c /etc/yum.conf.711 clean all
To clean up all the extra rpms.
- remove the offending old kernels
rpm -e kernel-2.4.3-12
rpm -e kernel-smp-2.4.3-12
- Edit /etc/yum.conf to point to the 7.3.1 area
You can either just changed all the 711's to say 731, or you can do replace it
with this
yum.conf.731 file.
- Run 'yum -d0 list nedit' to get all the 731 yum headers.
yum -d0 list nedit
- Remove ssh, ssh-server and all openssh rpm's via yum (yum remove
"ssh*" and/or yum remove "openssh*") taking care to keep track of the
ssh programs that you have removed.
yum remove "ssh*"
yum remove "openssh*"
warning If you are logged in via ssh, this can be a little nerve
racking, because you have just removed the program you are logged in with. Rest assured that you will still be connected.
Just don't log out until you have re-installed openssh.
- yum upgrade (this will take a while)
The difference between an update and an upgrade, is
that an update replaces an old package, with the new package of the
same name. An upgrade will look through the available packages,
and if there are any packages that seem like they have changed names,
or obsolete a package, it will replace the old package, with the
package of the new name. You don't always want that because
sometimes there are two packages that provide the same service or
programs. An example of this is ssh and openssh.
It is possible that this command will not work because of unresolved dependancies. So far the
ones I have seen are libkscan and kooka. If this happens you have a couple choices.
- Remove the offending rpm's, then try it again.
yum remove kooka
yum upgrade
- Put openssh back on (see next step) and live in 7.1.1
- Put openssh back on (see next step) and do a
regular upgrade
- yum install all the appropriate openssh packages.
yum install openssh openssh-clients openssh-askpass openssh-askpass-gnome
or
yum install "openssh*"
- It is a good idea to rerun lilo '/sbin/lilo' and make sure you're going to be able to boot again.
/sbin/lilo
You might also find that you have to re-edit your /etc/lilo.conf
If you need to edit your /etc/lilo.conf, just remember to remove all of the old kernels that
you don't have anymore, and make a section for the new kernel. The new kernel will be a
2.4.20-20.7 kernel. So you will want to add sections that look like these, but be sure to
change the root= section to point to the right partition for your machine (probrubly /dev/hda1).
You also might not need the initrd= line if your machine doesn't have any scsi drives.
- image=/boot/vmlinuz-2.4.20-20.7
label=linux
initrd=/boot/initrd-2.4.20-20.7
read-only
root=/dev/hda1
- image=/boot/vmlinuz-2.4.20-20.7smp
label=linux
initrd=/boot/initrd-2.4.20-20.7smp
read-only
root=/dev/hda1
- yum install zz_fermi-logos zz_dhcp_resolv
- /sbin/reboot
- yum install zz_sshd_aklog
- You now have yum, so you can install whatever packages you wish Especially those that you
uninstalled in previous steps.
yum install kooka
Problems You Might Encounter