Help Center Linux technology How to Set Up a Local...

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

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 article helpful?