- Joined
- Nov 30, 2023
- Messages
- 48
- Thread Author
- #1
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:
modify it using this, save and close
lastly run the following commands
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.
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.