可以yum deplist
检查 RPM 包的依赖关系。我想知道有关依赖项列表的信息存储在哪里。我下载了rpm包并用检查了它的内容rpm -qiap pkgname.rpm
,但它不包含依赖项。例如:
$ yum deplist nodejs010-2.1-5.sc1.el6.x86_64
Loaded plugins: fastestmirror, security
Finding dependencies:
Loading mirror speeds from cached hostfile
package: nodejs010.x86_64 2.1-5.sc1.el6
dependency: nodejs010-npm
provider: nodejs010-npm.noarch 1.4.28-5.sc1.el6
provider: nodejs010-npm.noarch 2.14.13-7.el6
dependency: nodejs010-nodejs
provider: nodejs010-nodejs.x86_64 0.10.40-1.el6
dependency: nodejs010-runtime
provider: nodejs010-runtime.x86_64 2.1-5.sc1.el6
provider: nodejs010-runtime.x86_64 2.1-3.sc1.el6
$ rpm -qilp nodejs010-2.1-5.sc1.el6.x86_64.rpm
warning: nodejs010-2.1-5.sc1.el6.x86_64.rpm: Header V4 RSA/SHA1
Signature, key ID f2ee9d55: NOKEY
Name : nodejs010 Relocations: (not relocatable)
Version : 2.1 Vendor: CentOS
Release : 5.sc1.el6 Build Date: Fri 04 Nov 2016 03:44:19 AM CDT
Install Date: (not installed) Build Host: c1bd.rdu2.centos.org
Group : Unspecified Source RPM: nodejs010-2.1-5.sc1.el6.src.rpm
Size : 0 License: MIT
Signature : RSA/SHA1, Fri 23 Dec 2016 05:47:16 PM CST, Key ID 4eb84e71f2ee9d55
Packager : CBS <[email protected]>
Summary : nodejs010 Software Collection
Description :
This is the main package for nodejs010 Software Collection.
(contains no files)
看起来依赖信息并没有直接存储在 RPM 文件中。那么它在哪里呢?
答案1
它位于 RPM 中,但您需要使用以下-R
选项才能看到它:
rpm -qpR nodejs010-2.1-5.sc1.el6.x86_64.rpm