dnf コマンドでパッケージの依存関係を表示する

RHEL8 / CentOS8 / RockyLinux8 などの dnf ベースのシステムではパッケージの依存関係を調べるには dnf deplist PACKAGE を使います。

以下は実行例です。

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# dnf deplist openconnect
Last metadata expiration check: 0:13:48 ago on Sat Nov  6 22:36:52 2021.
package: openconnect-8.10-1.el8.x86_64
  dependency: /bin/bash
   provider: bash-4.4.20-1.el8_4.x86_64
  dependency: /bin/sh
   provider: bash-4.4.20-1.el8_4.x86_64
  dependency: /usr/libexec/platform-python
   provider: platform-python-3.6.8-39.el8_4.rocky.0.i686
   provider: platform-python-3.6.8-39.el8_4.rocky.0.x86_64
  dependency: libc.so.6(GLIBC_2.25)(64bit)
   provider: glibc-2.28-151.el8.x86_64
  dependency: libcom_err.so.2()(64bit)
   provider: libcom_err-1.45.6-1.el8.1.x86_64
  dependency: libgcrypt.so.20()(64bit)
   provider: libgcrypt-1.8.5-4.el8.x86_64
  dependency: libgnutls.so.30()(64bit)
   provider: gnutls-3.6.14-8.el8_3.x86_64
  dependency: libgnutls.so.30(GNUTLS_3_4)(64bit)
   provider: gnutls-3.6.14-8.el8_3.x86_64
  dependency: libgnutls.so.30(GNUTLS_3_6_0)(64bit)
   provider: gnutls-3.6.14-8.el8_3.x86_64
  dependency: libgssapi_krb5.so.2()(64bit)
   provider: krb5-libs-1.18.2-8.3.el8_4.x86_64
  dependency: libgssapi_krb5.so.2(gssapi_krb5_2_MIT)(64bit)
   provider: krb5-libs-1.18.2-8.3.el8_4.x86_64
  dependency: libk5crypto.so.3()(64bit)
   provider: krb5-libs-1.18.2-8.3.el8_4.x86_64
  dependency: libkrb5.so.3()(64bit)
   provider: krb5-libs-1.18.2-8.3.el8_4.x86_64
  dependency: liblz4.so.1()(64bit)
   provider: lz4-libs-1.8.3-3.el8_4.x86_64
  dependency: libp11-kit.so.0()(64bit)
   provider: p11-kit-0.23.22-1.el8.x86_64
  dependency: libpcsclite.so.1()(64bit)
   provider: pcsc-lite-libs-1.8.23-4.1.el8_4.x86_64
  dependency: libproxy.so.1()(64bit)
   provider: libproxy-0.4.15-5.2.el8.x86_64
  dependency: libpthread.so.0()(64bit)
   provider: glibc-2.28-151.el8.x86_64
  dependency: libpthread.so.0(GLIBC_2.2.5)(64bit)
   provider: glibc-2.28-151.el8.x86_64
  dependency: libtasn1.so.6()(64bit)
   provider: libtasn1-4.13-3.el8.x86_64
  dependency: libtasn1.so.6(LIBTASN1_0_3)(64bit)
   provider: libtasn1-4.13-3.el8.x86_64
  dependency: libtspi.so.1()(64bit)
   provider: trousers-lib-0.3.15-1.el8.x86_64
  dependency: libtss2-esys.so.0()(64bit)
   provider: tpm2-tss-2.3.2-3.el8.x86_64
  dependency: libtss2-mu.so.0()(64bit)
   provider: tpm2-tss-2.3.2-3.el8.x86_64
  dependency: libtss2-sys.so.0()(64bit)
   provider: tpm2-tss-2.3.2-3.el8.x86_64
  dependency: libxml2.so.2()(64bit)
   provider: libxml2-2.9.7-9.el8_4.2.x86_64
  dependency: libxml2.so.2(LIBXML2_2.4.30)(64bit)
   provider: libxml2-2.9.7-9.el8_4.2.x86_64
  dependency: libxml2.so.2(LIBXML2_2.6.0)(64bit)
   provider: libxml2-2.9.7-9.el8_4.2.x86_64
  dependency: libz.so.1()(64bit)
   provider: zlib-1.2.11-17.el8.x86_64
  dependency: libz.so.1(ZLIB_1.2.0)(64bit)
   provider: zlib-1.2.11-17.el8.x86_64
  dependency: rtld(GNU_HASH)
   provider: glibc-2.28-151.el8.i686
   provider: glibc-2.28-151.el8.x86_64
  dependency: vpnc-script
   provider: vpnc-script-20171004-6.git6f87b0f.el8.noarch