yum으로 설치한 패키지 종속성 나열

yum으로 설치한 패키지 종속성 나열

2022-10-04 last update

8 minutes reading Yum rpm
yum을 사용할 수 없는 상황의 경우 패키지를 확인합니다.
여기에서는 PostgreSQL을 예로 실시합니다.
$ yum deplist postgresql-server  >  package.txt
$ echo "devel" >> package.txt
$ yum deplist postgresql-devel   >> package.txt
$ echo "cont" >> package.txt
$ yum deplist postgresql-contrib >> package.txt

결과
[[email protected] ~]$ cat package.txt 
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * elrepo: ftp.ne.jp
 * epel: ftp.iij.ad.jp
 * remi-safe: mirrors.tuna.tsinghua.edu.cn
 * rpmforge: ftp.riken.jp
151 packages excluded due to repository priority protections
package: postgresql-server.x86_64 9.2.15-1.el7_2
  dependency: /bin/bash
   provider: bash.x86_64 4.2.46-19.el7
  dependency: /bin/sh
   provider: bash.x86_64 4.2.46-19.el7
  dependency: /usr/sbin/useradd
   provider: shadow-utils.x86_64 2:4.1.5.1-18.el7
  dependency: chkconfig
   provider: chkconfig.x86_64 1.3.61-5.el7
  dependency: libc.so.6(GLIBC_2.7)(64bit)
   provider: glibc.x86_64 2.17-106.el7_2.4
  dependency: libcom_err.so.2()(64bit)
   provider: libcom_err.x86_64 1.42.9-7.el7
  dependency: libcrypto.so.10()(64bit)
   provider: openssl-libs.x86_64 1:1.0.1e-51.el7_2.4
  dependency: libcrypto.so.10(libcrypto.so.10)(64bit)
   provider: openssl-libs.x86_64 1:1.0.1e-51.el7_2.4
  dependency: libdl.so.2()(64bit)
   provider: glibc.x86_64 2.17-106.el7_2.4
  dependency: libdl.so.2(GLIBC_2.2.5)(64bit)
   provider: glibc.x86_64 2.17-106.el7_2.4
  dependency: libgssapi_krb5.so.2()(64bit)
   provider: krb5-libs.x86_64 1.13.2-12.el7_2
  dependency: libgssapi_krb5.so.2(gssapi_krb5_2_MIT)(64bit)
   provider: krb5-libs.x86_64 1.13.2-12.el7_2
  dependency: libkrb5.so.3()(64bit)
   provider: krb5-libs.x86_64 1.13.2-12.el7_2
  dependency: libkrb5.so.3(krb5_3_MIT)(64bit)
   provider: krb5-libs.x86_64 1.13.2-12.el7_2
  dependency: libldap-2.4.so.2()(64bit)
   provider: openldap.x86_64 2.4.40-9.el7_2
  dependency: libm.so.6()(64bit)
   provider: glibc.x86_64 2.17-106.el7_2.4
  dependency: libm.so.6(GLIBC_2.2.5)(64bit)
   provider: glibc.x86_64 2.17-106.el7_2.4
  dependency: libpam.so.0()(64bit)
   provider: pam.x86_64 1.1.8-12.el7_1.1
  dependency: libpam.so.0(LIBPAM_1.0)(64bit)
   provider: pam.x86_64 1.1.8-12.el7_1.1
  dependency: libpq.so.5()(64bit)
   provider: postgresql-libs.x86_64 9.2.15-1.el7_2
  dependency: libssl.so.10()(64bit)
   provider: openssl-libs.x86_64 1:1.0.1e-51.el7_2.4
  dependency: libssl.so.10(libssl.so.10)(64bit)
   provider: openssl-libs.x86_64 1:1.0.1e-51.el7_2.4
  dependency: libxml2.so.2()(64bit)
   provider: libxml2.x86_64 2.9.1-6.el7_2.2
  dependency: libxml2.so.2(LIBXML2_2.4.30)(64bit)
   provider: libxml2.x86_64 2.9.1-6.el7_2.2
  dependency: libxml2.so.2(LIBXML2_2.6.0)(64bit)
   provider: libxml2.x86_64 2.9.1-6.el7_2.2
  dependency: libz.so.1()(64bit)
   provider: zlib.x86_64 1.2.7-15.el7
  dependency: postgresql(x86-64) = 9.2.15-1.el7_2
   provider: postgresql.x86_64 9.2.15-1.el7_2
  dependency: postgresql-libs(x86-64) = 9.2.15-1.el7_2
   provider: postgresql-libs.x86_64 9.2.15-1.el7_2
  dependency: rtld(GNU_HASH)
   provider: glibc.x86_64 2.17-106.el7_2.4
   provider: glibc.i686 2.17-106.el7_2.4
  dependency: systemd-sysv
   provider: systemd-sysv.x86_64 219-19.el7_2.7
  dependency: systemd-units
   provider: systemd.x86_64 219-19.el7_2.7
devel
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * elrepo: ftp.ne.jp
 * epel: ftp.iij.ad.jp
 * remi-safe: mirrors.tuna.tsinghua.edu.cn
 * rpmforge: ftp.riken.jp
151 packages excluded due to repository priority protections
package: postgresql-devel.i686 9.2.15-1.el7_2
  dependency: /bin/sh
   provider: bash.x86_64 4.2.46-19.el7
  dependency: libc.so.6(GLIBC_2.4)
   provider: glibc.i686 2.17-106.el7_2.4
  dependency: libecpg.so.6
   provider: postgresql-libs.i686 9.2.15-1.el7_2
  dependency: libecpg_compat.so.3
   provider: postgresql-libs.i686 9.2.15-1.el7_2
  dependency: libpgtypes.so.3
   provider: postgresql-libs.i686 9.2.15-1.el7_2
  dependency: libpq.so.5
   provider: postgresql-libs.i686 9.2.15-1.el7_2
  dependency: libpthread.so.0
   provider: glibc.i686 2.17-106.el7_2.4
  dependency: libpthread.so.0(GLIBC_2.0)
   provider: glibc.i686 2.17-106.el7_2.4
  dependency: postgresql(x86-32) = 9.2.15-1.el7_2
   provider: postgresql.i686 9.2.15-1.el7_2
  dependency: postgresql-libs(x86-32) = 9.2.15-1.el7_2
   provider: postgresql-libs.i686 9.2.15-1.el7_2
  dependency: rtld(GNU_HASH)
   provider: glibc.x86_64 2.17-106.el7_2.4
   provider: glibc.i686 2.17-106.el7_2.4
package: postgresql-devel.x86_64 9.2.15-1.el7_2
  dependency: /bin/sh
   provider: bash.x86_64 4.2.46-19.el7
  dependency: libc.so.6(GLIBC_2.4)(64bit)
   provider: glibc.x86_64 2.17-106.el7_2.4
  dependency: libecpg.so.6()(64bit)
   provider: postgresql-libs.x86_64 9.2.15-1.el7_2
  dependency: libecpg_compat.so.3()(64bit)
   provider: postgresql-libs.x86_64 9.2.15-1.el7_2
  dependency: libpgtypes.so.3()(64bit)
   provider: postgresql-libs.x86_64 9.2.15-1.el7_2
  dependency: libpq.so.5()(64bit)
   provider: postgresql-libs.x86_64 9.2.15-1.el7_2
  dependency: libpthread.so.0()(64bit)
   provider: glibc.x86_64 2.17-106.el7_2.4
  dependency: libpthread.so.0(GLIBC_2.2.5)(64bit)
   provider: glibc.x86_64 2.17-106.el7_2.4
  dependency: postgresql(x86-64) = 9.2.15-1.el7_2
   provider: postgresql.x86_64 9.2.15-1.el7_2
  dependency: postgresql-libs(x86-64) = 9.2.15-1.el7_2
   provider: postgresql-libs.x86_64 9.2.15-1.el7_2
  dependency: rtld(GNU_HASH)
   provider: glibc.x86_64 2.17-106.el7_2.4
   provider: glibc.i686 2.17-106.el7_2.4
contrib
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * elrepo: ftp.ne.jp
 * epel: ftp.iij.ad.jp
 * remi-safe: mirrors.tuna.tsinghua.edu.cn
 * rpmforge: ftp.riken.jp
151 packages excluded due to repository priority protections
package: postgresql-contrib.x86_64 9.2.15-1.el7_2
  dependency: libc.so.6(GLIBC_2.4)(64bit)
   provider: glibc.x86_64 2.17-106.el7_2.4
  dependency: libcrypt.so.1()(64bit)
   provider: glibc.x86_64 2.17-106.el7_2.4
  dependency: libcrypt.so.1(GLIBC_2.2.5)(64bit)
   provider: glibc.x86_64 2.17-106.el7_2.4
  dependency: libcrypto.so.10()(64bit)
   provider: openssl-libs.x86_64 1:1.0.1e-51.el7_2.4
  dependency: libcrypto.so.10(libcrypto.so.10)(64bit)
   provider: openssl-libs.x86_64 1:1.0.1e-51.el7_2.4
  dependency: libm.so.6()(64bit)
   provider: glibc.x86_64 2.17-106.el7_2.4
  dependency: libm.so.6(GLIBC_2.2.5)(64bit)
   provider: glibc.x86_64 2.17-106.el7_2.4
  dependency: libossp-uuid.so.16()(64bit)
   provider: uuid.x86_64 1.6.2-26.el7
  dependency: libpq.so.5()(64bit)
   provider: postgresql-libs.x86_64 9.2.15-1.el7_2
  dependency: libpthread.so.0()(64bit)
   provider: glibc.x86_64 2.17-106.el7_2.4
  dependency: libpthread.so.0(GLIBC_2.2.5)(64bit)
   provider: glibc.x86_64 2.17-106.el7_2.4
  dependency: libselinux.so.1()(64bit)
   provider: libselinux.x86_64 2.2.2-6.el7
  dependency: libssl.so.10()(64bit)
   provider: openssl-libs.x86_64 1:1.0.1e-51.el7_2.4
  dependency: libssl.so.10(libssl.so.10)(64bit)
   provider: openssl-libs.x86_64 1:1.0.1e-51.el7_2.4
  dependency: libxml2.so.2()(64bit)
   provider: libxml2.x86_64 2.9.1-6.el7_2.2
  dependency: libxml2.so.2(LIBXML2_2.4.30)(64bit)
   provider: libxml2.x86_64 2.9.1-6.el7_2.2
  dependency: libxslt.so.1()(64bit)
   provider: libxslt.x86_64 1.1.28-5.el7
  dependency: libxslt.so.1(LIBXML2_1.0.11)(64bit)
   provider: libxslt.x86_64 1.1.28-5.el7
  dependency: libxslt.so.1(LIBXML2_1.0.18)(64bit)
   provider: libxslt.x86_64 1.1.28-5.el7
  dependency: libxslt.so.1(LIBXML2_1.0.22)(64bit)
   provider: libxslt.x86_64 1.1.28-5.el7
  dependency: libz.so.1()(64bit)
   provider: zlib.x86_64 1.2.7-15.el7
  dependency: postgresql(x86-64) = 9.2.15-1.el7_2
   provider: postgresql.x86_64 9.2.15-1.el7_2
  dependency: postgresql-libs(x86-64) = 9.2.15-1.el7_2
   provider: postgresql-libs.x86_64 9.2.15-1.el7_2
  dependency: rtld(GNU_HASH)
   provider: glibc.x86_64 2.17-106.el7_2.4
   provider: glibc.i686 2.17-106.el7_2.4