【问题标题】:How to install all rpm dependencies and map local to created YUM repository?如何安装所有 rpm 依赖项并将本地映射到创建的 YUM 存储库?
【发布时间】:2019-09-21 20:23:46
【问题描述】:

我有一个场景,在 Centos 7 中使用较新版本的 NodeJS rpm 拥有 yum 存储库(比如名为 A)。当我尝试安装它时,它最终出现在依赖项错误列表中,并且很少有 rpm 包无法自行计算由百胜。因此,下载所有依赖 rpm 并放置在创建的存储库中。开始使用此命令安装 rpm

rpm -ivh http-parser

然后尝试使用此命令获取已安装包的信息

yum info http-parser

以下信息已列出

Installed Packages
Name        : http-parser
Arch        : x86_64
Version     : 2.7.1
Release     : 8.el7
Size        : 71 k
Repo        : installed
Summary     : HTTP request/response parser for C
URL         : https://github.com/nodejs/http-parser
License     : MIT
Description : This is a parser for HTTP messages written in C. It
            : parses both requests and responses. The parser is
            : designed to be used in performance HTTP
            : applications. It does not make any syscalls nor
            : allocations, it does not buffer data, it can be
            : interrupted at anytime. Depending on your
            : architecture, it only requires about 40 bytes of
            : data per message stream (in a web server that is per
            : connection).

我打算安装这个包并映射到创建的自定义存储库(名称为 A)。但是 info 命令显示它安装在全局“Repo:已安装”而不是“Repo:A”上。我怀疑我错过了将依赖项安装到本地创建存储库的几个步骤。如何验证该软件包是否已安装并在存储库本地可用?

我想知道这是否是处理centos包安装中依赖错误的正确方法?

感谢任何有关这些的指导。谢谢!

【问题讨论】:

    标签: centos7 rpm yum


    【解决方案1】:

    yum 不记得它是从哪个仓库安装的。当您向yum 询问有关它所知道的名为http-parser 的任何软件包的任何信息时,它告诉您它知道当前安装的软件包。为此,它使用“已安装”的保留名称。

    【讨论】:

      猜你喜欢
      • 2013-01-31
      • 2013-09-26
      • 2021-09-13
      • 2016-07-18
      • 2020-04-10
      • 2019-01-15
      • 2018-11-05
      • 2010-10-26
      • 2014-06-28
      相关资源
      最近更新 更多