Quantcast

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:
    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: , , ,

This entry was posted in linux, system administration. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

65 Comments

  1. Guy
    Posted April 25, 2007 at 8:41 pm | Permalink

    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
    kernel-headers-2.6.20-1.2944.fc6
    # 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
    #

    Thanks,
    Guy

  2. Posted May 18, 2007 at 12:28 pm | Permalink

    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 :-)

  3. some dude
    Posted May 31, 2007 at 1:53 pm | Permalink

    For 6-7
    [root@localhost]# rpm -Uhv http://download.fedora.redhat.com/pub/fedor
    a/linux/releases/7/Fedora/x86_64/os/Fedora/fedora-release-7-3.noarch.rpm http:/
    /download.fedora.redhat.com/pub/fedora/linux/releases/7/Fedora/x86_64/os/Fedora
    /fedora-release-notes-7.0.0-1.noarch.rpm

  4. J.F.
    Posted May 31, 2007 at 3:11 pm | Permalink

    Do you know what the commands will be for Fedora Core 7?

  5. ddn
    Posted June 7, 2007 at 3:45 pm | Permalink

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

    elfutils needs elfutils-libs this is not available!

    Is anybody resolve elfutils dependency?

  6. Keith Jillings
    Posted June 16, 2007 at 7:35 pm | Permalink

    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)

    initscripts-8.31.6-1.i386
    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?

  7. krishna e bera
    Posted July 2, 2007 at 1:33 pm | Permalink

    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 )

  8. Richdog
    Posted July 4, 2007 at 9:53 am | Permalink

    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.

  9. Redgremlin
    Posted July 5, 2007 at 10:50 am | Permalink

    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.

  10. jasonz
    Posted July 27, 2007 at 6:52 pm | Permalink

    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?

  11. Frans
    Posted August 22, 2007 at 4:04 am | Permalink

    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?

  12. Kat
    Posted September 25, 2007 at 12:06 pm | Permalink

    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…

    cheers

  13. Posted September 28, 2007 at 8:38 am | Permalink

    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?

  14. Posted September 28, 2007 at 9:11 am | Permalink

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

  15. Posted January 5, 2009 at 8:56 pm | Permalink

    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.

    Elias

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

8 Trackbacks

  1. By Fedora Core 6 on a Laptop @ IONCANNON on October 27, 2006 at 10:10 pm

    [...] So after doing my yum upgrade from FC5 to FC6 on a desktop I decided to see if it worked any better than FC5 on my old Dell Inspiron 600m laptop. FC5 wasn't bad on this laptop but two things always bugged me: 1) the ATI driver didn't work out of the box at anything above 800×600 so I had to wait for the binary ATI drivers to support chipset and then install that and 2) sleep in any form just didn't work correctly. I'm happy to say that both of these things are fixed in FC6. [...]

  2. [...] I finally kicked my 64 bit install to the curb and am now running my AMD 64 desktop box in 32 bit mode. I decided that I had had enough of random crashes and having to compile things special every time I wanted something new. Having just upgraded from FC5 to FC6 on a couple other boxes I decided it was worth installing fresh on this box. Once the new install was finished I started looking into the new desktop enhancements that come in FC6 and after a little digging I ended up at the Beryl project. [...]

  3. [...] I ran in to the problem where the elfutils package came up as a conflict, as outlined in the comments here, here (post #5), and here.  The last link had a "hackish" way of making it work, but, after some fighting and a little bit of panic, I can say that it doesn't really work and it just isn't worth the hassle. [...]

  4. [...] Upgrade FC5 to FC6 with yum First do a software update via Applications->Updater so that FC5 is upto date. Then in the terminal window clean up the update state using the command yum clean all Now set up the repositories, type 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 And finally start the update yum -y update More information http://www.ioncannon.net/system-administration/99/upgrade-fc5-to-fc6-with-yum/ [...]

  5. [...] Now that Fedora Core 7 has been release it is time to upgrade from that crusty old Fedora Core 6. Last year I did a post on how to upgrade from FC5 to FC6 and this upgrade happened on the first box I used for that. [...]

  6. By Error: Missing Dependency: - Linux Forums on August 8, 2007 at 11:15 am

    [...] Originally Posted by Dapper Dan Hi emperorlinux, It has been my experience that trying to upgrade to current version in RedHat/Fedora using yum is challenging to say the very least. I suppose it is doable, but I've tried on more than one occasion and problems always seemed to multiply as fast as I tried to address them. Unless this is a "project" you are undertaking for the purpose of learning more about your distro (and that is a good reason), I'd recommend upgrading from install CD/DVD to current which will cause a lot less headaches. Good luck. Hi all, I have read that many people are not happy to upgrade their linux using yum. However, I have just done this with my old FC5 distribution as emperorlinux and it worked perfectly! I was very impressed. I found these two links pretty helpful: YumUpgradeFaq – Fedora Project Wiki Upgrade FC5 to FC6 with yum @ IONCANNON Third party rpms seem to be a problem. I also had one dependency issue. In order to solve it, I just deinstalled the rpm and kept going. After your upgrade you can try to install it again. Mazer __________________ I was seduced by SUSE 5.1. Registered Linux User #451562 [...]

  7. By Trylinux.org » Installing with Media is so 90s on October 4, 2007 at 3:16 pm
  8. By Ramblings of a sane man on March 4, 2009 at 12:09 am

    [...] out the there must be some method for doing it via yum. I got Google working on it and found this..http://www.ioncannon.net/system-administration/99/upgrade-fc5-to-fc6-with-yum/ and I figured I would work up to [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>