【发布时间】: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包安装中依赖错误的正确方法?
感谢任何有关这些的指导。谢谢!
【问题讨论】: