【原创】备份一下古老的CentOS 6.5官方yum源CentOS-Base.repo和epel.repo

blogdaren 2022-04-29 抢沙发 180人次

问题背景:

CentOS 6.5 估计已经没几个人在用了,本人有个别机器还在使用,悲催的是可用的yum源已经绝迹多年,不过悲中有喜,目前官方给了唯一的希望,具体详见:https://vault.centos.org,所以记录下成功运作的yum源方便本人后续可能随时要用。

备份两源:

(1) 备份 CentOS-Base.repo:

[centos-office]
name=centos-office
failovermethod=priority
baseurl=https://vault.centos.org/6.5/os/x86_64/
gpgcheck=1
gpgkey=https://vault.centos.org/6.5/os/x86_64/RPM-GPG-KEY-CentOS-6

(2) 备份 epel.repo:

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

注意事项:

配置好yum源以后,别忘记了执行:yum makecache 命令更新下缓存。

版权声明:除非注明,本文由( blogdaren )原创,转载请保留文章出处。

本文链接:【原创】备份一下古老的CentOS 6.5官方yum源CentOS-Base.repo和epel.repo

Free Web Hosting