RPM 套件的依賴資訊儲存在哪裡

RPM 套件的依賴資訊儲存在哪裡

可以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

相關內容