Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save daubac402/4bb953dc245ceb9728aac630718e3b8e to your computer and use it in GitHub Desktop.
Save daubac402/4bb953dc245ceb9728aac630718e3b8e to your computer and use it in GitHub Desktop.
CentOS-Base.repo for CentOS 6, using vault.centos.org instead of mirror.centos.org
# vim /etc/yum.repos.d/CentOS-Base.repo
# Because mirror.centos.org now doesn't support CentOS, we use vault.centos.org instead
# Change version "6.4" with your CentOS 6.x version: rpm -q centos-release
# Some old CentOS 6 server has old SSL so that it can't connect to https site, so need to add: "sslverify=0"
[base]
name=CentOS-$releasever - Base
baseurl=https://vault.centos.org/6.4/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
sslverify=0
# released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=https://vault.centos.org/6.4/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
sslverify=0
# additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=https://vault.centos.org/6.4/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
sslverify=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment