Skip to content

Instantly share code, notes, and snippets.

@Voronenko
Last active December 4, 2020 09:27
Show Gist options
  • Save Voronenko/a505233160bb38b7ab79ab882904f7f3 to your computer and use it in GitHub Desktop.
Save Voronenko/a505233160bb38b7ab79ab882904f7f3 to your computer and use it in GitHub Desktop.
Centos6 farewell

Centos 6 expired on 30th November 2020 You have to edit the CentOS-Base.repo to point to vault every where or set up a proxy to change the search to the vault Index of /6.10 https://vault.centos.org/6.10/

in the repo file change everywhere

name=CentOS-6.10 - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
baseurl=http://vault.centos.org/6.10/centosplus/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

depending on what you have in the file

grep 'name=' CentOS-Base.repo
name=CentOS-$releasever - Base
name=CentOS-$releasever - Updates
name=CentOS-$releasever - Addons
name=CentOS-$releasever - Extras
name=CentOS-$releasever - Plus
name=CentOS-$releasever - Contrib
# /etc/yum.repos.d/CentOS-Base.repo
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=https://vault.centos.org/6.10/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
baseurl=https://vault.centos.org/6.10/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
baseurl=https://vault.centos.org/6.10/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment