en en id en en en fa es en en es fr et en sv ro en fa en es en ja de en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en eo en en en en en en en en en en en en en en en en en en en en en en en en en en en en en ar en en en en en
How to get complete dependencies list of rpm ? | GoLinuxCloud
Get complete dependencies list of rpm (installed)
Get complete dependencies list of rpm (available on repo)
There can be multiple scenarios under which you may wish to get complete dependencies list of rpm, below are few which I can think of:
rpm is available on te repository (online)
Get complete dependencies list of rpm (installed)
If te rpm is already installed then use te below command to get te list of dependencies for that rpm
# rpm -qR glibc /sbin/ldconfig /usr/sbin/glibc_post_upgrade.x86_64 basesystem config(glibc) = 2.17-222.el7 glibc-common = 2.17-222.el7 ld-linux-x86-64.so.2()(64bit) ld-linux-x86-64.so.2(GLIBC_2.2.5)(64bit) ld-linux-x86-64.so.2(GLIBC_2.3)(64bit) libCNS.so()(64bit) libGB.so()(64bit) libISOIR165.so()(64bit) libJIS.so()(64bit) libJISX0213.so()(64bit) libKSC.so()(64bit) libc.so.6()(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.3)(64bit) libc.so.6(GLIBC_2.4)(64bit) libdl.so.2()(64bit) libdl.so.2(GLIBC_2.2.5)(64bit) libfreebl3.so()(64bit) libfreebl3.so(NSSRAWHASH_3.12.3)(64bit) libgcc libnsl.so.1()(64bit) libnsl.so.1(GLIBC_2.2.5)(64bit) libnss_files.so.2()(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.2.5)(64bit) libpthread.so.0(GLIBC_2.3.2)(64bit) libresolv.so.2()(64bit) libresolv.so.2(GLIBC_2.2.5)(64bit) libresolv.so.2(GLIBC_2.9)(64bit) rpmlib(BuiltinLuaScripts) <= 4.2.2-1 rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(PayloadIsXz) <= 5.2-1
Here -q means query and -R means Require, which will list capabilities on which this package depends.
Get complete dependencies list of rpm (available on repo)
If te rpm is part of some online or offline repo then you can use yum deplist.
# yum deplist glibc Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register. package: glibc.i686 2.17-196.el7_4.2 dependency: basesystem provider: basesystem.noarch 10.0-7.el7 dependency: glibc-common = 2.17-196.el7_4.2 provider: glibc-common.x86_64 2.17-196.el7_4.2 dependency: libfreebl3.so provider: nss-softokn-freebl.i686 3.28.3-8.el7_4 dependency: libfreebl3.so(NSSRAWHASH_3.12.3) provider: nss-softokn-freebl.i686 3.28.3-8.el7_4 dependency: libgcc provider: libgcc.x86_64 4.8.5-16.el7_4.2 provider: libgcc.i686 4.8.5-16.el7_4.2 package: glibc.x86_64 2.17-196.el7_4.2 dependency: basesystem provider: basesystem.noarch 10.0-7.el7 dependency: glibc-common = 2.17-196.el7_4.2 provider: glibc-common.x86_64 2.17-196.el7_4.2 dependency: libfreebl3.so()(64bit) provider: nss-softokn-freebl.x86_64 3.28.3-8.el7_4 dependency: libfreebl3.so(NSSRAWHASH_3.12.3)(64bit) provider: nss-softokn-freebl.x86_64 3.28.3-8.el7_4 dependency: libgcc provider: libgcc.x86_64 4.8.5-16.el7_4.2 provider: libgcc.i686 4.8.5-16.el7_4.2
ALSO READ: 20+ Top Open Source Application Performance Monitoring Tools (APM)
But this gives te list of modules which are te dependency of glibc rpm, and this is not very helpful if you plan to install te dependencies manually.
As much better tool for such cases is repoquery
# repoquery -R --resolve --recursive glibc pcre-0:8.32-15.el7.x86_64 glibc-0:2.17-157.el7_3.4.i686 bash-0:4.2.46-28.el7.x86_64 libselinux-0:2.2.2-6.el7.x86_64 basesystem-0:10.0-7.el7.noarch tzdata-0:2015f-1.el7.noarch pcre-0:8.32-12.el7.i686 libstdc++-0:4.8.3-9.el7.x86_64 libgcc-0:4.8.5-4.el7.x86_64 ncurses-libs-0:5.9-13.20130511.el7.x86_64 ncurses-base-0:5.9-14.20130511.el7_4.noarch nss-softokn-freebl-0:3.16.2.3-14.4.el7.i686 glibc-0:2.17-106.el7_2.4.x86_64 filesystem-0:3.2-20.el7.x86_64 redhat-release-server-0:7.0-1.el7.x86_64 libsepol-0:2.5-6.el7.x86_64 setup-0:2.8.71-5.el7.noarch libgcc-0:4.8.2-16.2.el7_0.i686 glibc-common-0:2.17-196.el7_4.2.x86_64
As you see this gave us a list of all te dependencies of glibc rpm in te format of rpm and not libraries or modules. So you can download and install these list of rpms manually if you do not have access to yum repo.
Get complete dependencies list of rpm (available locally but not installed)
If te rpm is available locally on your server then you can get te list of dependencies using rpm -qpR
# rpm -qpR glibc-2.17-222.el7.x86_64.rpm /sbin/ldconfig /usr/sbin/glibc_post_upgrade.x86_64 basesystem config(glibc) = 2.17-222.el7 glibc-common = 2.17-222.el7 ld-linux-x86-64.so.2()(64bit) ld-linux-x86-64.so.2(GLIBC_2.2.5)(64bit) ld-linux-x86-64.so.2(GLIBC_2.3)(64bit) libCNS.so()(64bit) libGB.so()(64bit) libISOIR165.so()(64bit) libJIS.so()(64bit) libJISX0213.so()(64bit) libKSC.so()(64bit) libc.so.6()(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.3)(64bit) libc.so.6(GLIBC_2.4)(64bit) libdl.so.2()(64bit) libdl.so.2(GLIBC_2.2.5)(64bit) libfreebl3.so()(64bit) libfreebl3.so(NSSRAWHASH_3.12.3)(64bit) libgcc libnsl.so.1()(64bit) libnsl.so.1(GLIBC_2.2.5)(64bit) libnss_files.so.2()(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.2.5)(64bit) libpthread.so.0(GLIBC_2.3.2)(64bit) libresolv.so.2()(64bit) libresolv.so.2(GLIBC_2.2.5)(64bit) libresolv.so.2(GLIBC_2.9)(64bit) rpmlib(BuiltinLuaScripts) <= 4.2.2-1 rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(PayloadIsXz) <= 5.2-1
Lastly I hope te steps from te article to get complete dependencies list of rpm was helpful. So, let me know your suggestions and feedback using te comment section.
Didn't find what you were looking for? Perform a quick search across GoLinuxCloud
If my articles on GoLinuxCloud has helped you, kindly consider buying me a coffee as a token of appreciation.
For any other feedbacks or questions you can either use te comments section or contact me form.
Thank You for your support!!
to stay connected and get te latest updates
1 thought on “How to get complete dependencies list of rpm ?”
February 29, 2020 at 6:04 am
Leave a Comment Cancel reply
Save my name and email in this browser for te next time I comment.
Notify me via e-mail if anyone answers my comment.
27 nmcli command examples (cheatsheet), compare nm-settings with if-cfg file
RHEL/CentOS 8 Kickstart example | Kickstart Generator
6 ssh authentication methods to secure connection (sshd_config)
How to check security updates list & perform linux patch management RHEL 6/7/8
5 useful tools to detect memory leaks with examples
15 steps to setup Samba Active Directory DC CentOS 8
8 ways to prevent brute force SSH attacks in Linux (CentOS/RHEL 7)
Linux zip folder | 16 practical Linux zip command examples
100+ Linux commands cheat sheet & examples
Understanding High Availability Cluster and Architecture
List of 50+ tmux cheatsheet and shortcuts commands
Top 15 tools to monitor disk IO performance with examples
10 single line SFTP commands to transfer files in Unix/Linux
30+ awk examples for beginners / awk command tutorial in Linux/Unix
Copyright © 2022 | Hosted On Rocket.net