Update from Fedora 18 to 20 or 21 in few simple clicks and without (I hope) problems!


Fedora 21Sometimes simple things become hard problems. This happened to me when I discovered that my Fedora 18 OS was obsolete (very old indeed) and I tried to upgrade it to the Fedora 20 version.

Fedora 18 doesn’t support the automatic OS upgrade so I had to spend some hours to find information on Internet and create the right DIY solution for my case. At the end of my little (sic!) research I discovered that I was able not only able to upgrade the PC to Fedora 20 but I also found a good “trick” to upgrade to the latest Fedora 21 following in just a couple of steps with the help of fedup and some other escamotages.

This is how I succeed…

First, you have to open a Terminal and type:

su
init 3

but you will immediately leave the Fedora GUI and so it’s better if you write the below commands on an -old style, paper notepad- to be sure to have all the right information in you hands and correctly manage the upgrade from Fedora 18 to Fedora 20

sudo su -
yum update
yum install fedup
fedup-cli --network 20 --nogpgcheck

It’s better to add –nogpgcheck because often you are not able to complete your upgrade for the “old”, “bad saved” gpg key in your system.

reboot

Now, at the boot-up menu (GRUB 2 menu) you have to choose “System Upgrade (Fedup)”.

Then just to be sure you really have an up to date OS, in Terminal, type:

Yum update

If you have problems with one or more of your “old” repositories don’t forget to deconfigure them. In my case I had to launch this command line in Terminal due to skip an old repository and proceed with the upgrade:

yum-config-manager --save --setopt=home_moritzmolch_gencfsm.skip_if_unavailable=true

At this point, to upgrade from Fedora 20 to Fedora 21 you have to open (again) the Terminal and type:

su
fedup --network 21 --product=workstation --nogpgcheck

OR

fedup --network 21 --product=server --nogpgcheck

(if your Fedora version is the server one)

OR

fedup --network 21 --product=cloud --nogpgcheck

(for the Fedora cloud edition for generic virtual machines or Container)

Take it easy and go to bed for a long snap because, in my case, the download took some hours as for 2,577 files to be upgraded…

At the end, as before, you have to Reboot and select “System Upgrade (Fedup)” at the boot-up menu (GRUB 2 menu) and all the necessary files will be installed. Again, take a good book to read while you wait the installation.

Good luck and remind you MUST backup all your data before you start any upgrade because unforeseen risks are always around the corner!

References:

https://ask.fedoraproject.org/en/question/37247/upgrade-fedora-18-to-fedora-20-via-yum-or-fedup/

http://tecadmin.net/steps-to-upgrade-fedora-19-to-20-using-fedup-tool/

http://www.unixmen.com/upgrade-fedora-20-fedora-21-using-fedup/

https://ask.fedoraproject.org/en/question/39558/how-to-remove-a-repository-from-my-system

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s