Upgrade FC5 to FC6 with yum

Now that Fedora Core 6 is available it is time to upgrade those old crusty FC5 installs. To upgrade from FC5 you can follow these steps:

  1. You may be able to skip this step but I did a yum update on FC5 first to make sure everything there was up to date and worked before moving to FC6.
  2. Do a “yum clean all” to remove all the old yum cruft.
  3. Install the fedora-release for Fedora Core 6. Use the rpm command:
    [code lang=”text”]
    rpm -Uhv http://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/Fedora/RPMS/fedora-release-6-4.noarch.rpm http://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/Fedora/RPMS/fedora-release-notes-6-3.noarch.rpm
  4. Run the yum update: yum -y update. At this point I had to remove a few packages to get past dependency issues they weren’t important and I just added them back after the update.

If you are still on FC4 you can upgrade from FC4 to FC5 first.

[tags]fedora, upgrade, yum, linux[/tags]

73 thoughts on “Upgrade FC5 to FC6 with yum

  1. Ariel

    Hello I do all the steps show up, BUT i got the follow error messages
    http://centos.karan.org/el6/extras/stable/i386/RPMS/repodata/repomd.xml: [Errno 14] HTTP Erro r 404: Date: Tue, 17 Apr 2007 22:28:24 GMT


    Cannot open/read repomd.xml file for repository: kbs-CentOS-Extras
    failure: repodata/repomd.xml from kbs-CentOS-Extras: [Errno 256] No more mirrors to try.
    Error: failure: repodata/repomd.xml from kbs-CentOS-Extras: [Errno 256] No more mirrors to tr y.

    please someone can help me…

    tanks you.

  2. Guy

    Odd, went without problems. Installed over 2000 filessets! However the kernel is still:
    # uname -a
    Linux mylinux 2.6.20-1.2312.fc5smp #1 SMP Tue Apr 10 15:30:02 EDT 2007 i686 i686 i386 GNU/Linux

    When I do yum update it says “No Packages marked for Update/Obsoletion”.

    How do I know what packages are missing?
    Can I assume only the kernel?

    Help please!


  3. Guy

    I only have 1 package installed with kernel and fc6 in the name. However yum shows many updates. What do I do? Seems like I should install all the updates, but why did yum skip them?

    # rpm -qa|grep fc6|grep kernel
    # yum list|grep kernel
    kernel-headers.i386 2.6.20-1.2944.fc6 installed
    kernel-smp.i686 2.6.20-1.2312.fc5 installed
    kernel-smp.i686 2.6.20-1.2307.fc5 installed
    kernel-xen0.i686 2.6.20-1.2307.fc5 installed
    kernel-xen0.i686 2.6.20-1.2312.fc5 installed
    kernel.i686 2.6.20-1.2944.fc6 updates
    kernel.i586 2.6.20-1.2944.fc6 updates
    kernel-PAE.i686 2.6.20-1.2944.fc6 updates
    kernel-PAE-debug.i686 2.6.20-1.2944.fc6 updates
    kernel-PAE-debug-devel.i686 2.6.20-1.2944.fc6 updates
    kernel-PAE-devel.i686 2.6.20-1.2944.fc6 updates
    kernel-debug.i686 2.6.20-1.2944.fc6 updates
    kernel-debug-devel.i686 2.6.20-1.2944.fc6 updates
    kernel-devel.i586 2.6.20-1.2944.fc6 updates
    kernel-devel.i686 2.6.20-1.2944.fc6 updates
    kernel-doc.noarch 2.6.20-1.2944.fc6 updates
    kernel-kdump.i686 2.6.20-1.2944.fc6 updates
    kernel-kdump-devel.i686 2.6.20-1.2944.fc6 updates
    kernel-xen.i686 2.6.20-1.2944.fc6 updates
    kernel-xen-devel.i686 2.6.20-1.2944.fc6 updates
    yum-kernel-module.noarch 1.0.3-1.fc6 extras


  4. Pingback: internetdba.net » Blog Archive » Installing/Upgrading Fedora 5

  5. Marcel Kraan

    At my place it was also very wrong..
    trying to remove lm_sensors and kde-base so i have it undone…

    rpm -e –nodeps fedora-release-6-4.noarch fedora-release-notes-6-3.noarch

    yum clean all
    yum -y update

    You must not do it on an importend server if you don’t have a spare :-)

  6. Pingback: Upgrading from FC6 to FC7 with yum @ IONCANNON

  7. ddn

    can’t upgdate fc5 to fc6 (x86_64)… dependency failed.

    elfutils needs elfutils-libs this is not available!

    Is anybody resolve elfutils dependency?

  8. Keith Jillings

    I had the “Failed dependencies” problem in spades!

    First time through it was two:

    livna-release-5-8.noarch (–erase and –repackage worked fine on that)

    When I tried –erase –repackage on that, I got a list of dozens of items with failed dependencies, some of them pretty key-looking.

    I stopped at that point.

    Is there a trick to get past this?

  9. krishna e bera

    i had a stock FC5 installation and followed the instructions in the article, and like Guy’s system it also did not install the FC6 kernel. i just did a
    yum install kernel
    and that was fixed (i can see the new kernel in /boot/grub/menu.lst )

  10. Richdog

    I received this error:

    Error: Unable to satisfy dependencies
    Error: Package autofs needs kernel

    I restarted the server after running yum -y update then ran yum install autofs. The kernel was listed in the dependency list and was updated to fc6. The new kernel was loaded at the next reboot and there were no errors after running yum -y update.

    Running fc6 now.

  11. Redgremlin

    One excellent starting point. Thank you.

    One problem I had – I had the livna repos installed, and some RPMs like VLC. Removing these fixed the dependency issues.

    My biggest problem was the
    Error: Package autofs needs kernel for everything marked FC5.

    It would appear therefore that the kernel message is erroneous, and generated because of one of the other kernel packages.

    It now looks like I am now an FC6 man – until I do the FC7 bit!

    Thanks again for pointing out the direction.

  12. jasonz

    I have the same problem as ddn (#60), it complains about:
    Error: Package elfutils needs elfutils-libelf = 0.119-1.2.1, this is not available.
    Error: Package elfutils needs libdw.so.1(ELFUTILS_0.119), this is not available.
    Error: Package cyrus-sasl needs cyrus-sasl-lib = 2.1.21-10, this is not available.
    Error: Package elfutils needs elfutils-libs = 0.119-1.2.1, this is not available.

    I checked, elfutils-libelf 0.119-1.2.1 is installed, and 0.128-2.fc6 is in the updates. I cant remove elfutils either, as it is required by yum….

    Any suggestions?

  13. Pingback: Error: Missing Dependency: - Linux Forums

  14. Frans

    Hmm… I removed kernel-headers.i386 from RPM database to (force) reinstall, but yum can’t find it. How do I get it back, anybody?

  15. Kat

    After the YUM upgrade – do a “yum install yum-utils” and this will resolve most, if not all of the dependencies and you can then do the yum -y upgrade after this completes. It sounds a bit strange, but it worked on several machines that all had different dependency issues…


  16. Jon

    Yesterday I posted about my remote machine hanging after going from FC4->FC5, and that it was currently running in the old FC4 kernel. Tech support at the datacenter just gave me this little gem:

    “kernel-2.6.20 is known to be unstable woth fedora core 5 . we recommend you use kernel-2.6.19 kernel-2.6.18 for fedora core 5.”

    Anyone else able to confirm this and recommend the best way to resolve it?

  17. Jon

    Oops, that last comment was meant for the FC4->FC5 article. I’ve been bouncing between three of these articles and lost track… :-)

  18. Pingback: Trylinux.org » Installing with Media is so 90s

  19. Elias

    Working on the last step. Seems to be going fine.

    I wanted to post a problem I had.

    When running “yum -y update” (last step) I got a message saying the file repomd.xml could not be found. I found this thread http://linux.derkeiler.com/Mailing-Lists/Fedora/2007-07/msg02726.html where they suggest eliminating the core part of the path in the basurl in the file /etc/yum.repos.d/fedora-updates.repo. It is a typo in that file. Remove it and the yum update runs smooth.

    Thanks for thhis great post and good luck.


    PS. I know, what am I still doing with FC5 annd now FC6?

  20. Pingback: Ramblings of a sane man

Comments are closed.