Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Centos 7 Repo Fix (1 Viewer)

Administrator
Staff member
Website Administrator
Joined
Nov 30, 2023
Messages
48
Since centos 7 has reached it's EOL. we need to fix it's repos in order for you to keep using and installing stuff in your OS

use the command:
Code:
sudo nano /etc/yum.repos.d/CentOS-Base.repo

modify it using this, save and close


Code:
[base]
name=CentOS-7 - 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-7 - 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-7 - 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-7 - 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


lastly run the following commands
Code:
sudo yum clean all
sudo yum makecache
sudo yum update


afterwards you should be good to go.

NOTE: this is only a temporary solution, it's better if you upgrade to a newer distro or use alternatives.
 

Users who are viewing this thread

Translate Website

Top