以下两个命令可以列出RPM包的依赖情况,
1 yum deplist pakcage

yum deplist ntp
Loaded plugins: fastestmirror
Finding dependencies: 
Loading mirror speeds from cached hostfile
 * base: mirrors.sohu.com
 * epel: mirrors.ustc.edu.cn
 * extras: mirrors.sohu.com
 * updates: mirrors.sohu.com
package: ntp.x86_64 4.2.6p5-12.el6.centos.1
  dependency: librt.so.1()(64bit)
   provider: glibc.x86_64 2.12-1.209.el6
   provider: glibc.x86_64 2.12-1.209.el6_9.1
   provider: glibc.x86_64 2.12-1.209.el6_9.2
  dependency: /sbin/service
   provider: initscripts.x86_64 9.03.58-1.el6.centos
   provider: initscripts.x86_64 9.03.58-1.el6.centos.2
   provider: initscripts.x86_64 9.03.58-1.el6.centos.1
  dependency: /bin/bash
   provider: bash.x86_64 4.1.2-48.el6
  dependency: libcap.so.2()(64bit)
   provider: libcap.x86_64 2.16-5.5.el6
  dependency: ntpdate = 4.2.6p5-12.el6.centos.1
   provider: ntpdate.x86_64 4.2.6p5-12.el6.centos.1
  dependency: libc.so.6(GLIBC_2.7)(64bit)
   provider: glibc.x86_64 2.12-1.209.el6
   provider: glibc.x86_64 2.12-1.209.el6_9.1
   provider: glibc.x86_64 2.12-1.209.el6_9.2
  dependency: rtld(GNU_HASH)
   provider: glibc.x86_64 2.12-1.209.el6
   provider: glibc.i686 2.12-1.209.el6
   provider: glibc.i686 2.12-1.209.el6_9.1
   provider: glibc.x86_64 2.12-1.209.el6_9.1
   provider: glibc.i686 2.12-1.209.el6_9.2
   provider: glibc.x86_64 2.12-1.209.el6_9.2
  dependency: libcrypto.so.10()(64bit)
   provider: openssl.x86_64 1.0.1e-57.el6
  dependency: libm.so.6()(64bit)
   provider: glibc.x86_64 2.12-1.209.el6
   provider: glibc.x86_64 2.12-1.209.el6_9.1
   provider: glibc.x86_64 2.12-1.209.el6_9.2
  dependency: /sbin/chkconfig
   provider: chkconfig.x86_64 1.3.49.5-1.el6
  dependency: librt.so.1(GLIBC_2.2.5)(64bit)
   provider: glibc.x86_64 2.12-1.209.el6
   provider: glibc.x86_64 2.12-1.209.el6_9.1
   provider: glibc.x86_64 2.12-1.209.el6_9.2
  dependency: libcrypto.so.10(libcrypto.so.10)(64bit)
   provider: openssl.x86_64 1.0.1e-57.el6
  dependency: /bin/sh
   provider: bash.x86_64 4.1.2-48.el6
  dependency: libcrypto.so.10(OPENSSL_1.0.1)(64bit)
   provider: openssl.x86_64 1.0.1e-57.el6
  dependency: libedit.so.0()(64bit)
   provider: libedit.x86_64 2.11-4.20080712cvs.1.el6
  dependency: libm.so.6(GLIBC_2.2.5)(64bit)
   provider: glibc.x86_64 2.12-1.209.el6
   provider: glibc.x86_64 2.12-1.209.el6_9.1
   provider: glibc.x86_64 2.12-1.209.el6_9.2
package: ntp.x86_64 4.2.6p5-10.el6.centos.2
  dependency: librt.so.1()(64bit)
   provider: glibc.x86_64 2.12-1.209.el6
   provider: glibc.x86_64 2.12-1.209.el6_9.1
   provider: glibc.x86_64 2.12-1.209.el6_9.2
  dependency: /sbin/service
   provider: initscripts.x86_64 9.03.58-1.el6.centos
   provider: initscripts.x86_64 9.03.58-1.el6.centos.2
   provider: initscripts.x86_64 9.03.58-1.el6.centos.1
  dependency: /bin/bash
   provider: bash.x86_64 4.1.2-48.el6
  dependency: libcap.so.2()(64bit)
   provider: libcap.x86_64 2.16-5.5.el6
  dependency: libc.so.6(GLIBC_2.7)(64bit)
   provider: glibc.x86_64 2.12-1.209.el6
   provider: glibc.x86_64 2.12-1.209.el6_9.1
   provider: glibc.x86_64 2.12-1.209.el6_9.2
  dependency: rtld(GNU_HASH)
   provider: glibc.x86_64 2.12-1.209.el6
   provider: glibc.i686 2.12-1.209.el6
   provider: glibc.i686 2.12-1.209.el6_9.1
   provider: glibc.x86_64 2.12-1.209.el6_9.1
   provider: glibc.i686 2.12-1.209.el6_9.2
   provider: glibc.x86_64 2.12-1.209.el6_9.2
  dependency: ntpdate = 4.2.6p5-10.el6.centos.2
   provider: ntpdate.x86_64 4.2.6p5-10.el6.centos.2
  dependency: libcrypto.so.10()(64bit)
   provider: openssl.x86_64 1.0.1e-57.el6
  dependency: libm.so.6()(64bit)
   provider: glibc.x86_64 2.12-1.209.el6
   provider: glibc.x86_64 2.12-1.209.el6_9.1
   provider: glibc.x86_64 2.12-1.209.el6_9.2
  dependency: /sbin/chkconfig
   provider: chkconfig.x86_64 1.3.49.5-1.el6
  dependency: librt.so.1(GLIBC_2.2.5)(64bit)
   provider: glibc.x86_64 2.12-1.209.el6
   provider: glibc.x86_64 2.12-1.209.el6_9.1
   provider: glibc.x86_64 2.12-1.209.el6_9.2
  dependency: libcrypto.so.10(libcrypto.so.10)(64bit)
   provider: openssl.x86_64 1.0.1e-57.el6
  dependency: /bin/sh
   provider: bash.x86_64 4.1.2-48.el6
  dependency: libcrypto.so.10(OPENSSL_1.0.1)(64bit)
   provider: openssl.x86_64 1.0.1e-57.el6
  dependency: libedit.so.0()(64bit)
   provider: libedit.x86_64 2.11-4.20080712cvs.1.el6
  dependency: libm.so.6(GLIBC_2.2.5)(64bit)
   provider: glibc.x86_64 2.12-1.209.el6
   provider: glibc.x86_64 2.12-1.209.el6_9.1
   provider: glibc.x86_64 2.12-1.209.el6_9.2
package: ntp.x86_64 4.2.6p5-12.el6.centos.2
  dependency: librt.so.1()(64bit)
   provider: glibc.x86_64 2.12-1.209.el6
   provider: glibc.x86_64 2.12-1.209.el6_9.1
   provider: glibc.x86_64 2.12-1.209.el6_9.2
  dependency: /sbin/service
   provider: initscripts.x86_64 9.03.58-1.el6.centos
   provider: initscripts.x86_64 9.03.58-1.el6.centos.2
   provider: initscripts.x86_64 9.03.58-1.el6.centos.1
  dependency: /bin/bash
   provider: bash.x86_64 4.1.2-48.el6
  dependency: libcap.so.2()(64bit)
   provider: libcap.x86_64 2.16-5.5.el6
  dependency: ntpdate = 4.2.6p5-12.el6.centos.2
   provider: ntpdate.x86_64 4.2.6p5-12.el6.centos.2
  dependency: libc.so.6(GLIBC_2.7)(64bit)
   provider: glibc.x86_64 2.12-1.209.el6
   provider: glibc.x86_64 2.12-1.209.el6_9.1
   provider: glibc.x86_64 2.12-1.209.el6_9.2
  dependency: rtld(GNU_HASH)
   provider: glibc.x86_64 2.12-1.209.el6
   provider: glibc.i686 2.12-1.209.el6
   provider: glibc.i686 2.12-1.209.el6_9.1
   provider: glibc.x86_64 2.12-1.209.el6_9.1
   provider: glibc.i686 2.12-1.209.el6_9.2
   provider: glibc.x86_64 2.12-1.209.el6_9.2
  dependency: libcrypto.so.10()(64bit)
   provider: openssl.x86_64 1.0.1e-57.el6
  dependency: libm.so.6()(64bit)
   provider: glibc.x86_64 2.12-1.209.el6
   provider: glibc.x86_64 2.12-1.209.el6_9.1
   provider: glibc.x86_64 2.12-1.209.el6_9.2
  dependency: /sbin/chkconfig
   provider: chkconfig.x86_64 1.3.49.5-1.el6
  dependency: librt.so.1(GLIBC_2.2.5)(64bit)
   provider: glibc.x86_64 2.12-1.209.el6
   provider: glibc.x86_64 2.12-1.209.el6_9.1
   provider: glibc.x86_64 2.12-1.209.el6_9.2
  dependency: libcrypto.so.10(libcrypto.so.10)(64bit)
   provider: openssl.x86_64 1.0.1e-57.el6
  dependency: /bin/sh
   provider: bash.x86_64 4.1.2-48.el6
  dependency: libcrypto.so.10(OPENSSL_1.0.1)(64bit)
   provider: openssl.x86_64 1.0.1e-57.el6
  dependency: libedit.so.0()(64bit)
   provider: libedit.x86_64 2.11-4.20080712cvs.1.el6
  dependency: libm.so.6(GLIBC_2.2.5)(64bit)
   provider: glibc.x86_64 2.12-1.209.el6
   provider: glibc.x86_64 2.12-1.209.el6_9.1
   provider: glibc.x86_64 2.12-1.209.el6_9.2

2 rpm -qR package

[root@esgzb-del-n004 ~]# rpm -qR ntp
/bin/bash  
/bin/sh  
/bin/sh  
/bin/sh  
/sbin/chkconfig  
/sbin/chkconfig  
/sbin/service  
/sbin/service  
config(ntp) = 4.2.6p5-12.el6.centos.1
libc.so.6()(64bit)  
libc.so.6(GLIBC_2.11)(64bit)  
libc.so.6(GLIBC_2.12)(64bit)  
libc.so.6(GLIBC_2.2.5)(64bit)  
libc.so.6(GLIBC_2.3)(64bit)  
libc.so.6(GLIBC_2.3.4)(64bit)  
libc.so.6(GLIBC_2.4)(64bit)  
libc.so.6(GLIBC_2.7)(64bit)  
libcap.so.2()(64bit)  
libcrypto.so.10()(64bit)  
libcrypto.so.10(OPENSSL_1.0.1)(64bit)  
libcrypto.so.10(libcrypto.so.10)(64bit)  
libedit.so.0()(64bit)  
libm.so.6()(64bit)  
libm.so.6(GLIBC_2.2.5)(64bit)  
librt.so.1()(64bit)  
librt.so.1(GLIBC_2.2.5)(64bit)  
ntpdate = 4.2.6p5-12.el6.centos.1
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rtld(GNU_HASH)  
rpmlib(PayloadIsXz) <= 5.2-1
GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:2 个月前 )
186a802e added ecosystem file for PM2 4 年前
5def40a3 Add host customization support for the NodeJS version 4 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐