【问题标题】:how to use yum install the rpms listed in redhat/el6/x86_64/如何使用 yum 安装 redhat/el6/x86_64/ 中列出的 rpms
【发布时间】:2015-09-13 14:19:16
【问题描述】:

一些 rpm 包可以在这里找到, http://dl.marmotte.net/rpms/redhat/el6/x86_64/

喜欢rubygem-bundler-1.0.15-1.el6.noarch.rpmrubygem-thor-0.14.6-1.el6.noarch.rpm

我的问题是我怎样才能只使用yum install rubygem-bundler 来安装这些软件包,yum repo 是什么?

我可以添加什么到/etc/yum.repo.d/

我在 AWS 中使用 amazon linux。

【问题讨论】:

  • 使用“随机”来源的 rpm 通常是一个非常的坏主意。如果您想要的只是 ruby​​gem-bundler,那么我相信在 CentOS 软件集合中可以找到 1.92.2.2
  • 是的,我已切换到我公司自己的 yum 存储库。谢谢。

标签: redhat rpm yum


【解决方案1】:

很简单,在/etc/yum.repos.d中创建一个名为marmatte.repo的文件,内容如下:

[marmotte]
name=marmotte
baseurl=http://dl.marmotte.net/rpms/redhat/el6/x86_64/
enabled=1
gpgcheck=0

保存后,运行yum makecache

【讨论】:

  • ="请求的 URL 返回错误:404 Not Found" -- 看起来虽然 rpm 在那里,但没有 repo
猜你喜欢
  • 2018-08-11
  • 2017-12-24
  • 2012-04-24
  • 1970-01-01
  • 1970-01-01
  • 2023-03-15
  • 1970-01-01
  • 1970-01-01
  • 2014-02-20
相关资源
最近更新 更多