Traditional way to upgrade Fedora 25 via DNF utility

Fedora 25 was out on November 22, 2016 after usual delay. Fedora is free, leading-edge operating system sponsored by RedHat and maintained by Fedora community.

We have already covered in our previous article Fedora 25 upgrade via Gnome software.

Fedora 25 upgrade via Gnome software

Here i’m going to show you, usual upgrade method via DNF utility.

Useful Fedora 25 Articles

Back up your system

Make sure your system got backup before initiating upgrade, either deja-dup tool or manual backup such as copying your important data’s to external hard disk, pen drive.

1) Don’t forget to take backup of your important/valuable data. If something goes wrong we will install freshly and restore the data.
2) Upgrade will take time based on your Internet connection and package which you have installed on your box.

Make your system upto date

Make sure your system upto date before initiating upgrade by firing the below command on your terminal. This will upgrade your current system packages to latest version.

[Update system upto date]
$ sudo dnf upgrade --refresh

Disable Third Party Repos

As per FedoraMagazin page many users faced third party repo conflict error. So, i advise users to disable Third party repo’s before firing dnf-plugin-system-upgrade command. Mainly the conflict occur with RPMFusion Repo and i didn’t face any issue with other third party repos, even though disable all other third party repo too, we can enable later.

[Disable RPMFusion Repo]
$ sudo dnf config-manager --set-disabled rpmfusion-free
$ sudo dnf config-manager --set-disabled rpmfusion-nonfree
$ sudo dnf config-manager --set-disabled rpmfusion-free-updates
$ sudo dnf config-manager --set-disabled rpmfusion-nonfree-updates

No need to disable any third party repo manually because it will automatically disable the repo, when it’s not meet the dependencies. See the below screenshot.

fedora-25-upgrade-via-dnf-utility-1c

Install the DNF plugin

Install the DNF plugin by firing the below command on terminal

[Install the DNF plugin]
$ sudo dnf install dnf-plugin-system-upgrade

Initiate the update with DNF

Initiate the update with DNF by firing the below command’s on terminal

[Initiate the update with DNF]
$ sudo dnf system-upgrade download --releasever=25

or

[Force upgrade]
$ sudo dnf system-upgrade download --releasever=25 --allowerasing

The above command will be download all of the upgrade packages for your machine locally to prepare for the upgrade.

  • --best : Adding the best flag will cancel the upgrade if an upgraded package cannot be upgraded because of a dependency issue.
  • --allowerasing : Adding the allowerasing flag will remove the dependency issue package s and perform the upgrade further.

Note : Try first command and if you face any issue, then no other option except second command. This will take time because need to download lots of packages This is time to have a cup of coffee.

Reboot and upgrade

Once you have downloaded all the upgrade packages, now your system will be ready for Fedora 25 upgrade. Just fire the below command on your terminal, this will reboot your system with Fedora 24 kernel, after the kernel screen, it will start the upgrade. Again its coffee time for you.

[Reboot and upgrade]
$ sudo dnf system-upgrade reboot

Initially you will get the below screen for upgrade.
fedora-25-upgrade-via-dnf-utility-3

Upgrading packages from Fedora 24 to Fedora 25.
fedora-25-upgrade-via-dnf-utility-4

Cleaning the Fedora 24 packages.
fedora-25-upgrade-via-dnf-utility-6

Verifying the Fedora 25 packages.
fedora-25-upgrade-via-dnf-utility-7

Upgrade successfully completed.
fedora-25-upgrade-via-dnf-utility-8

system will reboot now and you will get Fedora 25 kernel.
fedora-25-upgrade-via-dnf-utility-9

Checking Upgraded version of Fedora 25.
fedora-25-upgrade-9a

Wow amazing, will play some times and update you the feedback. Will come with Fedora 25 workstation installation steps with screenshot, Please stay tune with 2daygeek for Latest LINUX TIPS & TRICKS…)

Magesh Maruthamuthu

Love to play with all Linux distribution

You may also like...