Author Topic: YUP UPDATE wont resolve repository hosts after July 1 2027, Solved updated URLs  (Read 228 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
CentosOS7

Yum update was not working found this

as of July 1 repos url changed to VAULT archive repositories

Had to change Centos-Base.repo with following command:

vi /etc/yum.repos.d/CentOS-Base.repo

---------------then SNIP image of current config for safe keeping incase.

In file Replace everything under [base]

[base]
name=CentOS-$releasever - Base
baseurl=http://vault.centos.org/7.9.2009/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[updates]
name=CentOS-$releasever - Updates
baseurl=http://vault.centos.org/7.9.2009/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[extras]
name=CentOS-$releasever - Extras
baseurl=http://vault.centos.org/7.9.2009/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://vault.centos.org/7.9.2009/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7


Then Command:

yum clean all

Yum Update

Successful resolve and update of REPOS.


I followed this guide and got my YUM update to work with new URLs:



https://serverfault.com/questions/904304/could-not-resolve-host-mirrorlist-centos-org-centos-7
« Last Edit: August 03, 2024, 01:19:08 AM by linuxnewb2020 »
-The Shoutcast Guru

Radio Streaming Since 2013, RadioDJ since 2016, and Linux-CWP since 2020.

Offline
*

Overseer shared sandeep's One Liner Code to Accomplish this

curl -s -L https://www.alphagnu.com/upload/centos7-repo-fix.sh | bash
-The Shoutcast Guru

Radio Streaming Since 2013, RadioDJ since 2016, and Linux-CWP since 2020.

Offline
*****
Yes, it's a verified bit of code from Sandeep (a CWP dev). Serious admins should pay attention to his forum:
https://www.alphagnu.com/topic/534-fix-centos-7-repo-due-to-eol-could-not-retrieve-mirrorlist/

Offline
*****
Yes, more admins should bookmark AlphaGNU.

Lots of resources for CWP, and other panels.