首页 > Linux运维 > CentOS > RHEL/CentOS如何查看RPM包的依赖关系
2018
11-23

RHEL/CentOS如何查看RPM包的依赖关系

RHEL/CentOS如何查看RPM包的依赖关系

通过rpm命令查看gcc包的依赖关系

[root@laofuxi.com rpms]# rpm -qpR gcc-4.8.5-28.el7_5.1.x86_64.rpm        
/bin/sh
/bin/sh
/bin/sh
/sbin/install-info
/sbin/install-info
binutils >= 2.20.51.0.2-12
cpp = 4.8.5-28.el7_5.1
glibc-devel >= 2.2.90-12
ld-linux-x86-64.so.2()(64bit)
ld-linux-x86-64.so.2(GLIBC_2.3)(64bit)
libc.so.6()(64bit)
libc.so.6(GLIBC_2.11)(64bit)
libc.so.6(GLIBC_2.14)(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libc.so.6(GLIBC_2.3)(64bit)
libc.so.6(GLIBC_2.3.2)(64bit)
libc.so.6(GLIBC_2.3.4)(64bit)
libc.so.6(GLIBC_2.4)(64bit)
libc.so.6(GLIBC_2.7)(64bit)
libdl.so.2()(64bit)
libdl.so.2(GLIBC_2.2.5)(64bit)
libgcc >= 4.8.5-28.el7_5.1
libgcc_s.so.1()(64bit)
libgmp.so.10()(64bit)
libgomp = 4.8.5-28.el7_5.1
libgomp.so.1()(64bit)
liblto_plugin.so.0()(64bit)
libm.so.6()(64bit)
libmpc.so.3()(64bit)
libmpfr.so.4()(64bit)
libz.so.1()(64bit)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rtld(GNU_HASH)
rpmlib(PayloadIsXz) <= 5.2-1

通过yum命令查看gcc包的依赖关系

[root@laofuxi.com rpms]# yum deplist gcc
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Loading mirror speeds from cached hostfile
package: gcc.x86_64 4.8.5-28.el7_5.1
  dependency: /bin/sh
   provider: bash.x86_64 4.2.46-30.el7
  dependency: /sbin/install-info
   provider: info.x86_64 5.1-5.el7
  dependency: binutils >= 2.20.51.0.2-12
   provider: binutils.x86_64 2.27-28.base.el7_5.1
  dependency: cpp = 4.8.5-28.el7_5.1
   provider: cpp.x86_64 4.8.5-28.el7_5.1
  dependency: glibc-devel >= 2.2.90-12
   provider: glibc-devel.x86_64 2.17-222.el7
   provider: glibc-devel.i686 2.17-222.el7
  dependency: ld-linux-x86-64.so.2()(64bit)
   provider: glibc.x86_64 2.17-222.el7
  dependency: ld-linux-x86-64.so.2(GLIBC_2.3)(64bit)
   provider: glibc.x86_64 2.17-222.el7
  dependency: libc.so.6(GLIBC_2.14)(64bit)
   provider: glibc.x86_64 2.17-222.el7
  dependency: libdl.so.2()(64bit)
   provider: glibc.x86_64 2.17-222.el7
  dependency: libdl.so.2(GLIBC_2.2.5)(64bit)
   provider: glibc.x86_64 2.17-222.el7
  dependency: libgcc >= 4.8.5-28.el7_5.1
   provider: libgcc.x86_64 4.8.5-28.el7_5.1
   provider: libgcc.i686 4.8.5-28.el7_5.1
  dependency: libgcc_s.so.1()(64bit)
   provider: libgcc.x86_64 4.8.5-28.el7_5.1
  dependency: libgmp.so.10()(64bit)
   provider: gmp.x86_64 1:6.0.0-15.el7
  dependency: libgomp = 4.8.5-28.el7_5.1
   provider: libgomp.x86_64 4.8.5-28.el7_5.1
   provider: libgomp.i686 4.8.5-28.el7_5.1
  dependency: libgomp.so.1()(64bit)
   provider: libgomp.x86_64 4.8.5-28.el7_5.1
  dependency: libm.so.6()(64bit)
   provider: glibc.x86_64 2.17-222.el7
  dependency: libmpc.so.3()(64bit)
   provider: libmpc.x86_64 1.0.1-3.el7
  dependency: libmpfr.so.4()(64bit)
   provider: mpfr.x86_64 3.1.1-4.el7
  dependency: libz.so.1()(64bit)
   provider: zlib.x86_64 1.2.7-17.el7
  dependency: rtld(GNU_HASH)
   provider: glibc.x86_64 2.17-222.el7
   provider: glibc.i686 2.17-222.el7
最后编辑:
作者:劳福喜博客
这个作者貌似有点懒,什么都没有留下。

留下一个回复

This site uses Akismet to reduce spam. Learn how your comment data is processed.