frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register

Mirror issue with CentOS7

IevazIevaz Administrator
edited July 18 in Various Tutorials

CentOS 7 reached the EOL June 30, 2024:

https://blog.centos.org/2023/04/end-dates-are-coming-for-centos-stream-8-and-centos-linux-7/

When software reaches EOL, it means that the developer will no longer support the OS and there will be no more updates. That's why you might face some issues with the repository.

For this, to continue using CentOS 7, we offer some solutions. However, we offer to upgrade the server's OS to another one that is supported and hasn't reached EOL yet.

Solution:

1. Please connect to your VPS via SSH and run this command:

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

2. Then you will see these lines:

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
baseurl=http://centos.mirror.serveriai.lt/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

3. These lines should be changed to:

[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

Or:

[base]
name=CentOS-$releasever - Base
baseurl=https://centos.mirror.serveriai.lt/7.9.2009/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

4. Once you update the file, you need to save it.

5. To see if the changes are done correctly, you can run:

sudo yum list

Sign In or Register to comment.

Time4VPS

Learn how to install a web and database server, email, FTP client or other applications. Discover and share information on server security or optimization recommendations.
Feel free to join our constantly expanding community, participate in discussions, strengthen your knowledge on Linux and Windows server management!
© 2013 - 2024 Time4VPS. All rights reserved.

Get In Touch