Control Web Panel
WebPanel => Updates => Topic started by: SHOUTcast Guru on August 03, 2024, 01:15:11 AM
-
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
-
Overseer shared sandeep's One Liner Code to Accomplish this
curl -s -L https://www.alphagnu.com/upload/centos7-repo-fix.sh | bash
-
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/ (https://www.alphagnu.com/topic/534-fix-centos-7-repo-due-to-eol-could-not-retrieve-mirrorlist/)
-
Yes, more admins should bookmark AlphaGNU.
Lots of resources for CWP, and other panels.