centos7 – Error install Git newer version after CentOS 7 end of life in 2024

After CentOS 7 ends of life 2024, when I yum update a mirror error occurs. so I deleted the file

  • CentOS-Base.repo
  • CentOS-CR. repo
  • CentOS-Debuginfo.repo
  • CentOS-fasttrack.repo
  • CentOS-Media.repo
  • CentOS-Sources.repo
  • CentOS-x86_64-kernel.repo

in the /etc/yum.repos.d directory
then I added 1 repo

[base]
name=CentOS-7.9 - Base
baseurl=https://vault.centos.org/7.9.2009/os/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=1

[updates]
name=CentOS-7.9 - Updates
baseurl=https://vault.centos.org/7.9.2009/updates/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=1

[extra]
name=CentOS-7.9 - Extras
baseurl=https://vault.centos.org/7.9.2009/extras/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=1

yum update was successful, but I want to install git version > 2
based on post from here

but error when yum install git

Error: Package: git-core-2.43.0-1.ep7.x86_64 (endpoint)
 Requires: libpcre2-8.so.0()(64bit)
Error: Package: perl-Git-2.43.0-1.ep7.noarch (endpoint)
 Requirements: perl(Error)
Error: Package: git-2.43.0-1.ep7.x86_64 (endpoint)
 Requirements: perl(Term::ReadKey)

Is there a repo solution for CentOS 7 in 2024?

Read more here: Source link