How to upgrade from Fedora 26 to Fedora 27

hat logo

After official release of the new version of Fedora 27, we start with the updates of the previous version. As you should know, it is highly recommended to always be updated at all times, that is why I have here a small guide on how to update our system.

For those users who want to update their system to the new version, we have the facility to do it without the need to reinstall the system and having to compromise our files.

The easiest way to do this process it's from the gnome package manager. We just have to look in our notification area to execute the update or we can do it from "GNOME Software" in the "Software Updates" tab or click on the "Update" button and you should see the new version of Fedora there.

But for those of us who don't have Gnome?

Update Fedora from the terminal

If you are one of those who do not use Gnome in Fedora, the above will not help you, this is where we have to use the terminal to update our system. Here in this process it is extremely necessary to disable unofficial repositories, such as google, dropbox, rpmfusion, virtualbox etc.

For this we must go to our file that stores them and edit it, we do this with:

sudo ls /etc/yum.repos.d/

Here we will identify those that are outside of:

fedora.repo

fedora-updates.repo

fedora-updates-testing.repo

We will have to edit each one of them and add the option to:

enabled=0

For example in the Google repository:

sudo gedit /etc/yum.repos.d/google-chrome.repo
[google-chrome]

name=google-chrome

baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64

enabled=0

gpgcheck=0

The first thing to do is to open a terminal and start updating the packages and repositories.

sudo dnf upgrade --refresh

Here on it we will take about 30 to 50 min depending on your internet connection, it may take a little longer.

Now we will install a tool that will allow us to update our Fedora

sudo dnf install dnf-plugin-system-upgrade

Finally with the following commands we indicate that the installation of the new packages is carried out with:

sudo dnf system-upgrade download --releasever=27

Upon completion, it is it is extremely necessary to restart our team for the changes to take effect.

sudo dnf system-upgrade reboot

Resolving post-upgrade issues

There are times when problems arise after updating in this way, in order to solve them we just have to follow these steps. It shouldn't be necessary for the vast majority of updates.

Rebuild the RPM database

If we are shown warnings when working with RPM / DNF tools, it is possible that the database has been corrupted for some reason. It is possible to rebuild it and see if it solves your problems. Always backs up / var / lib / rpm / first. To rebuild the database, run:

sudo rpm --rebuilddb

Using distro-sync to resolve dependency issues

The system update tool uses the distro sync method by default. If your system remained partially out of update or if we noticed some package dependency issues, you can try to fix it by running another distro-sync manually. This tries to make your installed packages exactly the same version as in the currently enabled repositories, even if that meant downgrading some packages:

sudo dnf distro-sync

A more robust variant also allows removing packages whose package dependencies cannot be satisfied. Always carefully review which packages will be removed before confirming this:

sudo dnf distro-sync --allowerasing

Relabel files with latest SELinux policy

If warnings arise that some actions were not allowed due to the current SELinux policy, it could be a case of having some files incorrectly labeled with SELinux permissions. This could happen in the event of any errors or if you had SELinux disabled at some point in the past. You can relabel the entire system by running:

sudo touch /.autorelabel

Rebooting the next boot will take a long time as it will check and repair all SELinux tags on all your files. Once this is done, we can now enjoy this new version of Fedora.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: AB Internet Networks 2008 SL
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.