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.

[ac-button size=”large” color=”green” style=”flat” icon=”fa-link” url=”” target=”_blank”]Fedora 25 upgrade via Gnome software[/ac-button]

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.

[ac-box color=”yellow” icon=”fa-lightbulb-o”]
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

[ac-box color=”lred” icon=”fa-exclamation-triangle”]
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.


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


[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.

Upgrading packages from Fedora 24 to Fedora 25.

Cleaning the Fedora 24 packages.

Verifying the Fedora 25 packages.

Upgrade successfully completed.

system will reboot now and you will get Fedora 25 kernel.

Checking Upgraded version of Fedora 25.

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…)

About Magesh Maruthamuthu

Love to play with all Linux distribution

View all posts by Magesh Maruthamuthu →

Leave a Reply