VPSMATE

  • HOME
  • NEWS
  • VPS
  • DEDICATED
  • ARCHIVES
  • GoDaddy
  • SCRIPT
  • TOOLS
    • Traceroute
    • Benchmark
    • Useful Sites
  • Themes
  • GFW
VPSMATE
VPS COUPON & PROMOS | VPS & DEDICATED SERVERS OFFERS | VPS REVIEWS
  1. Main page
  2. Tips
  3. Main content

How to setup fastestmirror in CentOS 8 Dnf

23/11/2020 1972hotness 0likes 0comments

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

Related

Tag: Nothing
Last updated:23/11/2020

kyaky

This person is a lazy dog and has left nothing

Like
< Last article
Next article >

Comments

Cancel

This site uses Akismet to reduce spam. Learn how your comment data is processed.

COPYRIGHT © 2021 vpsmate.net. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang