How to Increase DNF Speed on Fedora 37/36/35

Fedora Linux users may notice that the DNF download speed can be slow compared to other distributions. This can be frustrating when you need to download and install many packages, which can occur regularly, given how Fedora pushes new package updates given the distribution type. Most users do not realize that a few minor tweaks to some configuration files can increase your download speed immensely.

This is done by telling DNF to use multiple mirrors in parallel, as DNF will only use a single mirror, which can often be slow. However, if you instruct DNF to use multiple mirrors, it will download files from multiple sources simultaneously, dramatically increasing your download speed. Secondly, you can also try using a faster mirror that provides a list of mirrors sorted by country and bandwidth. Combined with multiple parallel downloading, it will super boost your DNF speed.

The following tutorial will teach you how to configure and increase your DNF update/upgrade package manager speed on Fedora 37/36/35 Linux Workstation or Server.

Recommended Steps Before Installation

Before you continue, your system is advised to ensure all existing packages are up to date to avoid system conflicts.

sudo dnf upgrade --refresh -y

Configure DNF Package Manager

The first step is to open the following configuration using the following command.

sudo nano /etc/dnf/dnf.conf

Configure Parallel Downloads

The first option to increase the DNF speed is to add parallel downloads, and this option enabled will show results instantly after you enable it.

Add the following at the bottom of the dnf.conf configuration file.


The above tells the DNF package manager to download 10 parallel packages at the same time, 10 is the most recommended setting to start with, but you can increase this but only do so sparingly, such as from 10 to 15, 15 to 20.

Configure Fastest Mirror

The second improvement alongside parallel downloads is to enable the fastest mirror.

Add the following underneath parallel downloads in the dnf.conf configuration file.



example of terminal on fedora 37/36/35 on increasing dnf settings

With the fastest mirror and parallel mirrors configured, save the configuration file CTRL+O and exit CTRL+X.

The good idea is to run a DNF upgrade, and you will notice first the DNF package manager is now determining the fastest mirrors in the output.

sudo dnf upgrade --refresh


example determining fastest mirrors on fedora 37/36/35 linux

Depending on the number of parrel downloads, this may take a few moments to check and sort out, but in the long term, your DNF speeds should be incredibly faster now.

Not what you were looking for? Try searching for additional tutorials.

Leave a Comment