1. Run the commands:

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

 

2. Clean the YUM cache and generate a new cache:

sudo yum clean all
sudo yum makecache

 

3. Update the system:

sudo yum update

 

If you wish to learn more about Linux Sources List, we highly recommend visiting the following website: https://help.mirrorz.org/. This site offers a wealth of detailed resources that can help you better manage and configure your Linux system.

Was this answer helpful? 0 Users Found This Useful (0 Votes)