Last active
May 21, 2023 01:36
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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