Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 CentOS Linux 7 End of Life: June 30, 2024
#1
Who doesn't know - build environment ventoy - CentOS 7.8 x86_64.

CentOS 7 has expired, which means that there will be no more security updates or bug fixes provided by the official YUM repositories.
CentOS 7 repositories and mirrors are now disabled, so when running YUM commands, errors occur related to Mirrorlist.centos.org .


You need to upgrade to the next supported CentOS Stream 9 build or another distribution.

Or temporarily use workarounds:
To be able to further install packages in the system, it is necessary to make changes on the server to the data of the main repositories by connecting to the server via SSH.
You can make changes to the repository data by sequentially entering commands in the terminal:
Code:
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo

Or specify the new data explicitly in the configuration files of the repositories:

/etc/yum.repos.d/CentOS-Base.repo
Code:
[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

/etc/yum.repos.d/CentOS-fasttrack.repo
Code:
[fasttrack]
name=CentOS-7 - fasttrack
baseurl=http://vault.centos.org/7.9.2009/fasttrack/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

/etc/yum.repos.d/CentOS-x86_64-kernel.repo
Code:
[centos-kernel]
name=CentOS LTS Kernels for $basearch
baseurl=http://vault.centos.org/altarch/7/kernel/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[centos-kernel-experimental]
name=CentOS Experimental Kernels for $basearch
baseurl=http://vault.centos.org/altarch/7/experimental/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7


Add the information to the file BuildVentoyFromSource.txt
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)