In the middle of November 2017, Fedora released Fedora 27, the latest upgrade to the Fedora line. When I built the CARG Laptop, I went with Fedora 26 as it had Intel graphics card support. But some time has passed, and I feel it’s about time I upgraded. Here is what I did.
Thanks Where Its Due
The process I followed is from Ryan Lerch’s article in Fedora Magazine, with the creative title “Upgrading Fedora 26 to Fedora 27”. You can read Ryan’s article here. I also got some instructions from Fedora’s bug reports.
Preparing the Preparation
As with any operating system upgrade, it is strongly recommended you backup your data before you start this process. While this process ran well for me, that doesn’t mean it will be flawless for you. The people at Fedora work hard to make processes like this as easy and as foolproof as possible, but there is still a risk, so back up.
Once your data is safe, make sure your machine is as up to date as it can be so the process has the latest and greatest to leverage off. Do this by running the following command as the root user:
dnf upgrade --refresh
The last step of the preparation is to install the DNF system upgrade plugin. This is simply a matter of running the following command as the root user:
dnf install dnf-plugin-system-upgrade
Once that is done, we can start running the upgrading process.
Get It Done
Now the system is ready to go, download all the updates needed to upgrade your system. To do that, run the following command as the root user:
dnf system-upgrade download --releasever=27
Be aware that this may take a while, as it has a lot to download (maybe a couple of gig worth, depending on what programs you have installed and the speed of your internet connection). This simply downloads the updates and runs a test installation – it does not run the actual update. That is because there is a potential show-stopping bug in the process, but it is easy fo fix.
The bug involves existing software repositories being flagged as “expired”, so they are not used once the installation begins. The problem is that completely legitimate repos end up being accidentally flagged, so you need to check if anything has been flagged. The flagging process happens between the downloading of the packages and the installation process, which is why these two commands are run separately. Run the following command as the root user:
This file should appear as follows:
Basically, it’s just an opening and a closing square bracket – that’s it. If it does not look like that, edit the file to make it that. Save and close the file.
Once that is sorted, it’s time to run the upgrade. Run the following command as the root user:
dnf system-upgrade reboot
Your computer will now install all of the upgrades it downloaded earlier, verify the installation, and reboot. This process takes a long time – just to do the installations took over an hour, and the verifications another 15 minutes or so.
Once you have mowed the lawn, done the laundry, watched a movie or woken up from your nap, the installation process completes with a reboot, returning you to a login screen. Once you have logged in, you should be able to confirm the upgrade by going to Menu > Preferences > System Info:
So far in my testing, all my programs are working fine, and my files were exactly as I left them. Hopefully it is just as painless for you.