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.
If the kernel is upgraded, you’ll have to reboot the machine for that particular upgrade to take effect.
When that completes, reboot your machine.
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.