CentOS 8 Yum Repair to Vault.CentOS.org

Mindwatering Incorporated

Author: Tripp W Black

Created: 06/01/2022 at 11:23 AM

 

Category:
Linux
Configuration

Task:
Upgrade CentOS8 to Newest Patch in 8 fails after 2021/12/31. This is likely caused by the End-of-life of the CentOS 8 repositories. The repos need to be re-set to use the "archive" vault repos.


Steps:
# sudo su -
# more /etc/redhat-release
CentOS Linux release 8.5.2111

# dnf update -y
CentOS Linux 8 - AppStream 135 B/s | 38 B 00:00
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist


WARNING:
Do you have a VM snapshot, yet? Make sure your have appropriate backups before continuing...

IMPORTANT:
Fixing the CentOS repos and getting the system up-to-date is needed before trying to follow the conversion to RockyOS.



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

Try again:
# yum update -y
<wait>

Fix missing core dnf/yum plugins:
e.g.
# yum upgrade
Failed loading plugin "kpatch": No module named 'dnfpluginscore'

# dnf install dnf-plugins-core; dnf update
<wait>

# dnf update
Dependencies resolved.
Nothing to do.
Complete!











previous page

×