曦玄的个人空间 https://blog.eetop.cn/1143350 [收藏] [复制] [分享] [RSS]

空间首页 动态 记录 日志 相册 主题 分享 留言板 个人资料

日志

centos6 yum源更新2021-1-8亲测

已有 3374 次阅读| 2021-1-8 11:49 |个人分类:linux|系统分类:芯片设计| centos, yum, centos, centos, centos, centos, centos, centos, centos, centos

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

祝大家好运

有问题,下面留言


点赞

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 注册

  • 关注TA
  • 加好友
  • 联系TA
  • 0

    周排名
  • 0

    月排名
  • 0

    总排名
  • 6

    关注
  • 5

    粉丝
  • 16

    好友
  • 0

    获赞
  • 6

    评论
  • 1918

    访问数
关闭

站长推荐 上一条 /1 下一条

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-4-27 22:58 , Processed in 0.019081 second(s), 8 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
返回顶部