How to Set Up a Local Yum/DNF Repository on CentOS 8 Print

  • 0

The following commands point to the Cloudflare-based vault repository, which makes dnf/yum work again.

{

sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.epel.cloud|g' /etc/yum.repos.d/CentOS-Linux-*

}


Was this answer helpful?

« Back