Centos 7
tar and libnsl may need to be pre-installed:
# Extract the list of dependent packages:
yum -q deplist tar;
package: tar.x86_64 2:1.26-35.el7dependency: /bin/sh
provider: bash.x86_64 4.2.46-34.el7
dependency: /sbin/install-info
provider: info.x86_64 5.1-5.el7
dependency: libacl.so.1()(64bit)
provider: libacl.x86_64 2.2.51-15.el7
dependency: libacl.so.1(ACL_1.0)(64bit)
provider: libacl.x86_64 2.2.51-15.el7
dependency: libc.so.6(GLIBC_2.17)(64bit)
provider: glibc.x86_64 2.17-307.el7.1
dependency: libselinux.so.1()(64bit)
provider: libselinux.x86_64 2.5-15.el7
dependency: rtld(GNU_HASH)
provider: glibc.x86_64 2.17-307.el7.1
provider: glibc.i686 2.17-307.el7.1# libnsl is not needed in this example as no package is returned:
yum -q deplist libnsl# Download each of the dependent packages:
# yumdownloader <package1> <package2>…
yumdownloader package: tar.x86_64 2:1.26-35.el7