CentOS/RHEL 6 EOL: Switch to the Vault Repos & Fix yum TLS/Cert Errors
CentOS/RHEL 6 EOL: Switch to the Vault & Fix yum TLS/Cert Problems
CentOS/RHEL 6 mirrors are gone. To keep legacy hosts updating, point yum to the CentOS Vault and refresh certificates. Below is a minimal, repeatable setup.
1) Disable the old mirrorlist repos
sed -ri 's/^enabled=1/enabled=0/' /etc/yum.repos.d/CentOS-Base.repo || true
2) Create a lean Vault repo file
Enable only the 6.10 vault repos (fast/stable) and set metadata to never expire:
cat >/etc/yum.repos.d/CentOS-Vault.repo <<'EOF' [C6.10-base] name=CentOS-6.10 - Base baseurl=http://vault.epel.cloud/6.10/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 enabled=1 metadata_expire=never [C6.10-updates] name=CentOS-6.10 - Updates baseurl=http://vault.epel.cloud/6.10/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 enabled=1 metadata_expire=never [C6.10-extras] name=CentOS-6.10 - Extras baseurl=http://vault.epel.cloud/6.10/extras/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 enabled=1 metadata_expire=never EOF
(You can substitute http://vault.centos.org/6.10/... if that endpoint is faster for you.)
3) Refresh CA certificates & TLS (common cert errors)
yum clean all yum install -y ca-certificates openssl nss curl update-ca-trust force-enable || true rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 yum makecache
4) (Optional) EPEL archive
If you need EPEL-era packages compatible with EL6, add the archived EPEL:
cat >/etc/yum.repos.d/epel-archive.repo <<'EOF' [epel-archive] name=EPEL archive for EL6 baseurl=https://archives.fedoraproject.org/pub/archive/epel/6/$basearch/ enabled=0 gpgcheck=0 EOF # use it ad-hoc: yum --enablerepo=epel-archive install <pkg>
5) Verify
yum repolist yum check-update
👉 Once your system updates are working, follow the next guide: Headless NVIDIA on CentOS/RHEL 6: VirtualGL + TurboVNC setup.
