December 3, 2023
27A 6CP 4V6 1R4 5N3 XLW BLU 7RE MCG IXK MAR 2E7 JSC ZGT LJ0 4DR WF9 H6P FQ3 APE N5U WBP DL3 HOD EW5 WNE IF1 28X JC9 RI3 Y06 3HP 1AM 93T RHQ RRU 9ZU TX1 K3B 6FS RVG VL7 CR1 2TL Q0L 54F IXV XZ2 ZTP TIW AGW D1Z PJU S87 Y89 1Z4 O3X DDV RNY PHM V9L DNL EKA LOK Y0U IXH XNB ZNY 3YE 2YM YJT DG4 QP9 B5K QY7 URO 3CV DGI F0P SYG

champpixs/Getty Images

DNF, which replaced the aging original Linux package manager some time ago, is used on the likes of Red Hat Enterprise Linux, Fedora, and other distributions to install, upgrade, and remove software. DNF, aka Dandified Yum, is very simple to use but it has long been criticized for being slow.

Now, DNF5 is here to vastly improve the experience and performance. DNF5 features:

Also: How to choose the right Linux desktop distribution for you

  • No longer requires Python
  • Smaller install size – 114 MB (whereas DNF used 165 MB).
  • Noticeable speed increase
  • Replaces both DNF and Microdnf with a single package
  • Optimizes download metadata
  • Optional download of file lists (which are configurable from the DNF config file and/or commands)

I’ve installed DNF5 on a few instances of Fedora Linux and have been pleasantly surprised at how much faster it runs than previous iterations. When you combine the new-found speed of DNF5 with the blazing speed of the GNOME 45 Activities Overview search, Fedora 39 turns into one of the fastest desktop operating systems you’ll ever experience.

The problem is that Fedora 39 doesn’t ship with DNF5 installed. Out of the box, you’ll get the speed of GNOME 45 but you’ll miss out on the swifter package management experience.

Fortunately, DNF5 is very easy to install on Fedora 39. Let me show you how it’s done.

How to install DNF5 on Fedora 39

What you’ll need: The only things you’ll need are a running instance of Fedora 39 and a user with sudo privileges.

A few things to keep in mind: First, DNF5 will not be officially added until Fedora 41. Second, GNOME Software does not yet use DNF5. While you can use DNF and DNF5 on the same machine, you’ll have to specify the dnf5 command when you want to use it (instead of the standard dnf). I’ve tested DNF5 on Fedora 39 and haven’t run into any issues yet, but your mileage may vary.

Also: Linux might be your best bet for heightening your desktop computer security

With that said, let’s install DNF5 on Fedora 39.

The first thing you’ll want to do is upgrade Fedora. This is something you should do regularly, to ensure you have the latest security patches, bug fixes, and features. Log into your Fedora 39 instance and open the terminal app. With that open, upgrade Fedora with the command:

If the kernel is upgraded, you’ll have to reboot the machine for that particular upgrade to take effect.

Back at the terminal app, install DNF5 with the command:

When that completes, reboot your machine.

Using DNF5

As I said earlier, using DNF5 is a simple matter of dnf5 over dnf. In other words, to upgrade Fedora with DNF5, the command would be:

Also: Thinking about switching to Linux? 9 things you need to know

Let’s say you want to install the Audacity audio recorder. For that, the DNF5 command would be:

sudo dnf5 install audacity -y

To remove Audacity, the command would be:

sudo dnf5 remove audacity -y

And that’s pretty much all there is to DNF5. Here’s one final thing to keep in mind: Once Fedora officially adopts DNF5, the command will most likely revert to dnf, since DNF5 will then be the default. 

Leave a Reply

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