Upgrading from Fedora 10 (Cambridge) to Fedora 11 (Leonidas)

There are two main ways to upgrade Fedora 10 (Cambridge) to Fedora 11 (Leonidas):

» What the Fedora developers suggest:

yum -y upgrade
yum -y install preupgrade
yum clean all
preupgrade-cli "Fedora 11 (Leonidas)"

Of course, if you're doing this on a Fedora desktop, you can use preupgrade (rather than preupgrade-cli) to upgrade with a GUI.

» The method I prefer (and it works properly on Slicehost):

yum -y upgrade
yum clean all
wget http://download.fedora.redhat.com/pub/fedora/linux/releases/11/Fedora/x86_64/os/Packages/fedora-release-11-1.noarch.rpm
rpm -Uvh fedora-release-11-1.noarch.rpm

At this point, you would normally just start upgrading packages, but the Fedora developers threw us a curveball. Since yum in Fedora 10 doesn't support metalinks, your upgrades will fail with something like this:

# yum -y upgrade
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. /
removing mirrorlist with no valid mirrors: //var/cache/yum/updates/mirrorlist.txt
Error: Cannot retrieve repository metadata (repomd.xml) for repository: updates. Please verify its path and try again

It's easily fixed, however. Open up /etc/yum.repos.d/fedora.repo and /etc/yum.repos.d/fedora-updates.repo in your favorite text editor and change the mirrorlist URL's like so:

Fedora Repository

#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch

Fedora Updates Repository

#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch
mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch

Once you make those changes, finish out the upgrade:

yum -y upgrade

This process will take a little while to complete, but there shouldn't be any interaction required. Once it's done, change the mirrorlist lines back to the original values so you can benefit from the speedups provided by the metalink format.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Printed from: http://rackerhacker.com/2009/06/11/upgrading-from-fedora-10-cambridge-to-fedora-11-leonidas/ .
© Major Hayden 2010.

6 Comments   »

  • NK says:

    thanks for the fix :)

  • ankit86 says:

    In the mirrorlist URL when I change metalink to mirrorlist it still shows me the error: No Packages marked for Update
    Can you help me...thanks

  • major says:

    NK - Glad I could help! Not sure why they set it up like that.

    antkit86 - Did you try a yum clean all? Also, does /etc/redhat-release show Fedora 11?

  • BS says:

    I'm getting the same problem as antkit86. What do I do with the RPM?

  • Slavi says:

    I see you download an RPM file using wget but I don't see you've actually installing it.

    Fedora release 10 (Cambridge)

  • Slavi - Good point! I missed that. I'll amend the post.

RSS feed for comments on this post , TrackBack URI

Leave a Reply