找回密码
 立即注册

QQ登录

只需一步,快速开始

Centos 5 yum无效解决方案


编辑CentOS-Base.repo



  1. # CentOS-Base.repo
  2. #
  3. # The mirror system uses the connecting IP address of the client and the
  4. # update status of each mirror to pick mirrors that are updated to and
  5. # geographically close to the client.  You should use this for CentOS updates
  6. # unless you are manually picking other mirrors.
  7. #
  8. # If the mirrorlist= does not work for you, as a fall back you can try the
  9. # remarked out baseurl= line instead.
  10. #
  11. #

  12. [base]
  13. name=CentOS-$releasever - Base - 163.com
  14. #baseurl=http://mirrors.163.com/centos/$releasever/os/$basearch/
  15. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
  16. baseurl=http://vault.centos.org/5.11/os/$basearch/
  17. gpgcheck=1
  18. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

  19. #released updates
  20. [updates]
  21. name=CentOS-$releasever - Updates - 163.com
  22. #baseurl=http://mirrors.163.com/centos/$releasever/updates/$basearch/
  23. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
  24. baseurl=http://vault.centos.org/5.11/os/$basearch/
  25. gpgcheck=1
  26. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

  27. #packages used/produced in the build but not released
  28. [addons]
  29. name=CentOS-$releasever - Addons - 163.com
  30. #baseurl=http://mirrors.163.com/centos/$releasever/addons/$basearch/
  31. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
  32. baseurl=http://vault.centos.org/5.11/os/$basearch/
  33. gpgcheck=1
  34. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

  35. #additional packages that may be useful
  36. [extras]
  37. name=CentOS-$releasever - Extras - 163.com
  38. #baseurl=http://mirrors.163.com/centos/$releasever/extras/$basearch/
  39. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
  40. baseurl=http://vault.centos.org/5.11/updates/$basearch/
  41. gpgcheck=1
  42. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

  43. #additional packages that extend functionality of existing packages
  44. [centosplus]
  45. name=CentOS-$releasever - Plus - 163.com
  46. #baseurl=http://mirrors.163.com/centos/$releasever/centosplus/$basearch/
  47. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
  48. baseurl=http://vault.centos.org/5.11/updates/$basearch/
  49. gpgcheck=1
  50. enabled=0
  51. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

  52. #contrib - packages by Centos Users
  53. [contrib]
  54. name=CentOS-$releasever - Contrib - 163.com
  55. #baseurl=http://mirrors.163.com/centos/$releasever/contrib/$basearch/
  56. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
  57. baseurl=http://vault.centos.org/5.11/updates/$basearch/
  58. gpgcheck=1
  59. enabled=0
  60. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
复制代码



本教程由无限星辰工作室CRX349独家整理和提供,转载请注明地址,谢谢。本文地址:https://xmspace.net/thread-585-1-1.html
无限星辰工作室  好集导航 Discuz全集下载  星辰站长网  集热爱361  一品文学  手机小游戏合集   海外空间网 星辰api  星辰支付二维码管理平台 LOT智能硬件聚合平台 阿里云服务器 腾讯云服务器
服务Discuz!建站|DiscuzQ配置|二开|小程序|APP|搬家|挂马清理|防护|Win/Linux环境搭建|优化|运维|
服务理念:专业 诚信 友好QQ842062626 服务项目 Q群315524225

发表于 2018-2-10 23:25:41 | 显示全部楼层 |阅读模式

回复 | 使用道具 举报

该帖共收到 0 条回复!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

美图秀

    • 自建远程桌面服务器 rustdesk
    • Discuz!x3.4 账号保镖 自动冻结账号无效解
    • PVE换主板后 网络丢失解决方法
    • Kvm 虚拟机迁移到PVE里面
    • Discuz!x3,4 阿里云DCDN配置获取客户端ip
拖动客服框
Online Service
点击这里给我发消息
点击这里联系我们
微信扫一扫
在线客服
快速回复 返回顶部 返回列表