Dnf by default does not choose the fastest mirror, but this can be changed by editing the dnf.conf file.
The dnf.conf file is in /etc/dnf/dnf.conf.
Edit the file
sudo nano /etc/dnf/dnf.conf
Once the file opens the content should look something like this.
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=True
skip_if_unavailable=False
fastestmirror=1
max_parallel_downloads=8
Let’s add fastmirror to the config and enable it.
Add below the line skip_if_unavaiable=True the following.
fastestmirror=1
The dnf.conf should look like this.
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=True
skip_if_unavailable=True
fastestmirror=1
max_parallel_downloads=8
Save the file.
Run the following command.
sudo dnf clean all
Comments