【问题标题】:How to get default open yum client's /etc/yum.repos.d configuration如何获取默认打开 yum 客户端的 /etc/yum.repos.d 配置
【发布时间】:2013-07-23 14:03:58
【问题描述】:

全部,由于我的服务器安装了 yum 客户端并将 /etc/yum.repos.d 配置为我们的私有 yum repo,所以我只能 yum 安装我们的私有 rpm 包和软件,现在我想将其更改为指向common open public repos 用于安装通用 rpm 包,如何重新设置 yum repo 配置?如果你有类似 "lynx -dump "xxxx" > /etc/yum.repos.d " 的命令会更好,谢谢!

【问题讨论】:

    标签: linux yum centos6


    【解决方案1】:

    您需要在 /etc/yum.repos.d 中创建额外的 repo

    删除 /etc/yum.repos.d/ 的本地仓库

    下面是语法

    eg  /etc/yum.repos.d/public.repo
    
    [name-name]
    name=newpublicrepo
    baseurl=http://publicurlof repo
    enabled=1
    gpgcheck = 0
    

    或者你可以直接从网上安装rpmforge,epel。

    http://wiki.centos.org/AdditionalResources/Repositories/RPMForge

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-12-18
      • 2018-12-12
      • 1970-01-01
      • 2011-06-27
      • 2019-12-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多