Why you can trust ZDNET
:ZDNET independently tests and researches products to bring you our best recommendations and advice. When you buy through our links, we may earn a commission.Our process
'ZDNET Recommends': What exactly does it mean?
ZDNET's recommendations are based on many hours of testing, research, and comparison shopping. We gather data from the best available sources, including vendor and retailer listings as well as other relevant and independent reviews sites. And we pore over customer reviews to find out what matters to real people who already own and use the products and services we’re assessing.
When you click through from our site to a retailer and buy a product or service, we may earn affiliate commissions. This helps support our work, but does not affect what we cover or how, and it does not affect the price you pay. Neither ZDNET nor the author are compensated for these independent reviews. Indeed, we follow strict guidelines that ensure our editorial content is never influenced by advertisers.
ZDNET's editorial team writes on behalf of you, our reader. Our goal is to deliver the most accurate information and the most knowledgeable advice possible in order to help you make smarter buying decisions on tech gear and a wide array of products and services. Our editors thoroughly review and fact-check every article to ensure that our content meets the highest standards. If we have made an error or published misleading information, we will correct or clarify the article. If you see inaccuracies in our content, please report the mistake via this form.
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:
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.
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:
sudo dnf upgrade -y
If the kernel is upgraded, you'll have to reboot the machine for that particular upgrade to take effect.
2. Install DNF5
Back at the terminal app, install DNF5 with the command:
sudo dnf install dnf5 -y
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:
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.