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.
  1. Back everything up somehow.
  2. Make sure you have LOTS of room for /var/cache - 400Meg to 1000Meg should do.
  3. Get yum on 7.1.1 machine.  If yum is already installed, skip this step
  4. yum update yum
  5. Get rid of your 2.4.3-12 kernels. (kernel-2.4.3-12 and kernel-smp-2.4.3-12)
    1. 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
    2. 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
    3. rpm -e kernel-2.4.3-12
      rpm -e kernel-smp-2.4.3-12
  6. Edit /etc/yum.conf to look like this file.
  7. Run 'yum -d0 list nedit' to test.
    yum -d0 list nedit
  8. 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.
  9. yum upgrade (this will take a while)
  10. yum install "openssh*"
  11. Double check /etc/lilo.conf and re-run lilo.
    /sbin/lilo
  12. yum install zz_fermi-logos zz_dhcp_resolv
  13. /sbin/reboot
  14. yum install zz_sshd_aklog
  15. 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.
  1. Back everything up somehow.
  2. Make sure you have LOTS of room for /var/cache - 400Meg to 1000Meg (depending on how much stuff you have)
  3. Get yum on 7.1.1 machine.  If yum is already installed, skip this step
  4. yum update yum
  5. 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.
    1. uname -r
      2.4.20-18.7smp
    2. 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
    3. 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
    1. yum -c /etc/yum.conf.711 update
    2. yum -c /etc/yum.conf.711 clean all
      To clean up all the extra rpms.
    3. remove the offending old kernels
      rpm -e kernel-2.4.3-12
      rpm -e kernel-smp-2.4.3-12
  6. 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.
  7. Run 'yum -d0 list nedit' to get all the 731 yum headers.
    yum -d0 list nedit
  8. 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.
  9. 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.
  10. yum install all the appropriate openssh packages.
    yum install openssh openssh-clients openssh-askpass openssh-askpass-gnome
    or
    yum install "openssh*"
  11. 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
  12. yum install zz_fermi-logos zz_dhcp_resolv
  13. /sbin/reboot
  14. yum install zz_sshd_aklog
  15. 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