Here is how to speed up the DNF package manager on your Rocky, Fedora, CentOS, RHEL, or any other Linux distribution that uses Dnf as its package manager.

The default configuration of DNF is not optimized for speed. We can add a few tweaks to the dnf.conf and make it faster.

The tweak we can do is to set the maximum parallel downloads to 20. By default, it is set to 3.

To do this, we need to edit the dnf.conf file. Let’s use nano and edit the file.

sudo vi /etc/dnf/dnf.conf

Now add the following lines to the end of the dnf.conf file.


Save the file by pressing Escape, then :wq, and enter.

Now when you use DNF you should have a speed increase.

If you found this article helpful, please share it with others.

I compiled a list of software and services that I use to improve my workflow, here is the link to the list.

Darryl Dias

I’m Darryl. I’m a 3D Artist, Programmer and Linux enthusiast. On this site I share my insights, tips and tricks, tutorials, methods and best practices.