Tuesday 12 January 2016

Upgrade Fedora 17 to 18 (End-of-life releases)

I couldn't find any information about upgrading End-of-life fedora versions.  Here is what I learned, as somebody who never upgraded Fedora before.

Setting repositories to the fedora EOL archives:

In order to install anything on an end-of-life release, you need to change the files in /etc/yum.repos.d.  You only need to change the repos who have by default, "enabled=1" in the section.

Comment out the line:

 mirrorlist=...
And uncomment "#baseurl=..." and change it to:

baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/$releasever/Everything/$basearch/os
Now you should be able to install the fedup package.

Running fedup:

 I have found that the simple command "fedup --network 18" failed with the message "Downloading Failed: couldn't get boot images".  This is because the archives store the boot images under a different path.  So I ran:
fedup --network 18 --instrepo "http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/18/Fedora/x86_64/os/"
(replace x86_64 with i386 for 32bit installs)

This solves the boot image problem.

NOTE: I had found there were 404 errors running this command, but after I removed everything inside /var/tmp/fedora-upgrade/, there were no more 404 errors.