centos6 yum源更新2021-1-8亲测
作者:互联网
2020年底传出Centos取消更新的消息,我们大家都很紧张,以后再也不能使用yum去下载和更新软件了,需要自立更生,去下载rpm包
那么现在我给大家分享一下一个新的源,可以提供yum的使用
系统环境:Centos6
时间:2021-01-08
CentOS-Base.rar
1、打开gvim /etc/yum.repos.d
修改
[base] name=CentOS-6 failovermethod=priority baseurl=https://vault.centos.org/6.9/os/x86_64/ gpgcheck=0
2、删掉源文件后面的内容,然后将如下的epel内容复制进去
[epel] name=Extra Packages for Enterprise Linux 6 - $basearch baseurl=https://archives.fedoraproject.org/pub/archive/epel/6/$basearch failovermethod=priority enabled=1 gpgcheck=0 gpgkey=file:///etc/yum.repos.d/RPM-GPG-KEY-CentOS-6 [epel-debuginfo] name=Extra Packages for Enterprise Linux 6 - $basearch - Debug baseurl=https://archives.fedoraproject.org/pub/archive/epel/6/$basearch/debug failovermethod=priority enabled=0 gpgkey=file:///etc/yum.repos.d/RPM-GPG-KEY-CentOS-6 gpgcheck=0 [epel-source] name=Extra Packages for Enterprise Linux 6 - $basearch - Source baseurl=https://archives.fedoraproject.org/pub/archive/epel/6/SRPMS failovermethod=priority enabled=0 gpgkey=file:///etc/yum.repos.d/RPM-GPG-KEY-CentOS-6 gpgcheck=0
3、针对上文中红色标注的信息,我们需要下载该gpgkey文件
可以使用wget命令去获取
wget -O /etc/yum.repos.d/RPM-GPG-KEY-CentOS-6 https://vault.centos.org/6.9/os/x86_64/RPM-GPG-KEY-CentOS-6
wangjl
祝大家好运
有问题,下面留言
标签:epel,GPG,CentOS,basearch,centos6,yum,2021,org 来源: https://www.cnblogs.com/wangjunlong/p/15323080.html