"rpm" 패키지와 "dnf" 간의 종속성을 나열합니다.
dnf repoquery --requires java-17-openjdk-devel
Updating Subscription Management repositories.
(..)
/bin/sh
/usr/sbin/alternatives
java-17-openjdk(x86-64) = 1:17.0.2.0.8-13.el9
java-17-openjdk(x86-64) = 1:17.0.3.0.7-1.el9_0
java-17-openjdk(x86-64) = 1:17.0.4.0.8-2.el9_0
java-17-openjdk(x86-64) = 1:17.0.4.1.1-2.el9_0
java-17-openjdk(x86-64) = 1:17.0.4.1.1-5.el9
java-17-openjdk(x86-64) = 1:17.0.5.0.8-1.el9_1
java-17-openjdk(x86-64) = 1:17.0.5.0.8-2.el9_0
java-17-openjdk(x86-64) = 1:17.0.6.0.10-3.el9_1
java-17-openjdk(x86-64) = 1:17.0.7.0.7-1.el9_1
java-17-openjdk(x86-64) = 1:17.0.7.0.7-3.el9
java-17-openjdk(x86-64) = 1:17.0.8.0.7-2.el9
java-17-openjdk(x86-64) = 1:17.0.9.0.9-2.el9
libc.so.6()(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libc.so.6(GLIBC_2.34)(64bit)
libdl.so.2()(64bit)
libpthread.so.0()(64bit)
rtld(GNU_HASH)
libc.so.6
rpm 패키지가 libc.so.6
종속성과 다른 모든 출력을 제공하는 대신 패키지 이름을 보고 싶습니다 .
답변1
--resolve
Fedora 38에 .
$ dnf repoquery --arch x86_64 --resolve --requires java-17-openjdk-devel
alternatives-0:1.25-1.fc38.x86_64
bash-0:5.2.21-1.fc38.x86_64
glibc-0:2.37-16.fc38.x86_64
java-17-openjdk-1:17.0.9.0.9-3.fc38.x86_64