Knowledgebase
emscom > emscom Help Desk > Knowledgebase

Search help:


CentOS7 Yum Vault configuration

Solution

CentOS 7 is no longer supported and the official update mirrorlist has been retired.

To bring CentOS to the latest released version and allow 3rd party repos to continue to be used the CentOS-Base repo must be disabled and the Vault repo configured and enabled.

 

#disable Red Hat subscription-manager auto enable
$ subscription-manager config --rhsm.auto_enable_yum_plugins=0
$ nano /etc.yum/pluginconf.d/subscription-manager.conf
#disable yum subscription manager plugin
enabled=0

 

$ nano /etc/yum.repos.d/CentOS-Base.repo

#add the following to each repo section
enabled=0

$ nano /etc/yum.repos.d/CentOS-Vault.repo

#add the following to the end of the repo file
# Vault

[Vault-base]
name=Vault - CentOS-$releasever - Base
baseurl=http://vault.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-$releasever
enabled=1

[Vault-updates]
name=Vault - CentOS-$releasever - Updates
baseurl=http://vault.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-$releasever
enabled=1

[Vault-extras]
name=Vault - CentOS-$releasever – Extras
baseurl=http://vault.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-$releasever

#end of file
$ yum clean all
$ yum makecache

 

 
Was this article helpful? yes / no
Related articles Connect IQ Simulator missing dependencies
Webmin Install webmin
Centos add Mate Desktop to minimal install
Centos 7 rename ethernet interface
Centos avahi mdns
Article details
Article ID: 236
Category: Linux
Date added: 30-09-2024 11:11:41
Views: 46
Rating (Votes): Article not rated yet (0)

 
« Go back

 
Powered by Help Desk Software HESK, in partnership with SysAid Technologies