YUM下载全量依赖

【YUM下载全量依赖】在离线的内网环境下进行安装一些软件的时候会出现依赖不完整的情况,一般情况下会使用如下方式进行下载依赖包
YUM下载全量依赖
文章图片

查看依赖包可以使用 yum deplist 进行查找

[root@localhost ~]# yum deplist nginx Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.tuna.tsinghua.edu.cn * epel: mirrors.tuna.tsinghua.edu.cn * extras: mirrors.tuna.tsinghua.edu.cn * updates: mirrors.tuna.tsinghua.edu.cn package: nginx.x86_64 1:1.20.1-2.el7 dependency: /bin/sh provider: bash.x86_64 4.2.46-34.el7 dependency: libc.so.6(GLIBC_2.17)(64bit) provider: glibc.x86_64 2.17-324.el7_9 dependency: libcrypt.so.1()(64bit) provider: glibc.x86_64 2.17-324.el7_9 dependency: libcrypt.so.1(GLIBC_2.2.5)(64bit) provider: glibc.x86_64 2.17-324.el7_9 dependency: libcrypto.so.1.1()(64bit) provider: openssl11-libs.x86_64 1:1.1.1g-3.el7 dependency: libcrypto.so.1.1(OPENSSL_1_1_0)(64bit) provider: openssl11-libs.x86_64 1:1.1.1g-3.el7 dependency: libdl.so.2()(64bit) provider: glibc.x86_64 2.17-324.el7_9 dependency: libdl.so.2(GLIBC_2.2.5)(64bit) provider: glibc.x86_64 2.17-324.el7_9 dependency: libpcre.so.1()(64bit) provider: pcre.x86_64 8.32-17.el7 dependency: libprofiler.so.0()(64bit) provider: gperftools-libs.x86_64 2.6.1-1.el7 dependency: libpthread.so.0()(64bit) provider: glibc.x86_64 2.17-324.el7_9 dependency: libpthread.so.0(GLIBC_2.2.5)(64bit) provider: glibc.x86_64 2.17-324.el7_9 dependency: libpthread.so.0(GLIBC_2.3.2)(64bit) provider: glibc.x86_64 2.17-324.el7_9 dependency: libssl.so.1.1()(64bit) provider: openssl11-libs.x86_64 1:1.1.1g-3.el7 dependency: libssl.so.1.1(OPENSSL_1_1_0)(64bit) provider: openssl11-libs.x86_64 1:1.1.1g-3.el7 dependency: libssl.so.1.1(OPENSSL_1_1_1)(64bit) provider: openssl11-libs.x86_64 1:1.1.1g-3.el7 dependency: libz.so.1()(64bit) provider: zlib.x86_64 1.2.7-19.el7_9 dependency: nginx-filesystem provider: nginx-filesystem.noarch 1:1.20.1-2.el7 dependency: nginx-filesystem = 1:1.20.1-2.el7 provider: nginx-filesystem.noarch 1:1.20.1-2.el7 dependency: openssl provider: openssl.x86_64 1:1.0.2k-21.el7_9 dependency: pcre provider: pcre.x86_64 8.32-17.el7 provider: pcre.i686 8.32-17.el7 dependency: redhat-indexhtml provider: centos-indexhtml.noarch 7-9.el7.centos dependency: rtld(GNU_HASH) provider: glibc.x86_64 2.17-324.el7_9 provider: glibc.i686 2.17-324.el7_9 dependency: system-logos provider: centos-logos.noarch 70.0.6-3.el7.centos dependency: systemd provider: systemd.x86_64 219-78.el7_9.3 [root@localhost ~]#

使用 repotrack 命令进行下载所需依赖
[root@localhost ~]# yum -y install yum-utils [root@localhost ~]# repotracknginx Downloading acl-2.2.51-15.el7.x86_64.rpm Downloading audit-libs-2.8.5-4.el7.x86_64.rpm Downloading audit-libs-2.8.5-4.el7.i686.rpm Downloading basesystem-10.0-7.el7.centos.noarch.rpm Downloading bash-4.2.46-34.el7.x86_64.rpm Downloading binutils-2.27-44.base.el7.x86_64.rpm Downloading bzip2-libs-1.0.6-13.el7.x86_64.rpm Downloading bzip2-libs-1.0.6-13.el7.i686.rpm Downloading ca-certificates-2020.2.41-70.0.el7_8.noarch.rpm Downloading centos-indexhtml-7-9.el7.centos.noarch.rpm Downloading centos-logos-70.0.6-3.el7.centos.noarch.rpm Downloading centos-release-7-9.2009.1.el7.centos.x86_64.rpm Downloading chkconfig-1.7.6-1.el7.x86_64.rpm Downloading coreutils-8.22-24.el7_9.2.x86_64.rpm Downloading cpio-2.11-28.el7.x86_64.rpm Downloading cracklib-2.9.0-11.el7.x86_64.rpm Downloading cracklib-2.9.0-11.el7.i686.rpm Downloading cracklib-dicts-2.9.0-11.el7.x86_64.rpm Downloading cryptsetup-libs-2.0.3-6.el7.x86_64.rpm Downloading curl-7.29.0-59.el7_9.1.x86_64.rpm Downloading cyrus-sasl-lib-2.1.26-23.el7.x86_64.rpm Downloading cyrus-sasl-lib-2.1.26-23.el7.i686.rpm Downloading dbus-1.10.24-15.el7.x86_64.rpm Downloading dbus-libs-1.10.24-15.el7.x86_64.rpm Downloading device-mapper-1.02.170-6.el7_9.5.x86_64.rpm Downloading device-mapper-libs-1.02.170-6.el7_9.5.i686.rpm Downloading device-mapper-libs-1.02.170-6.el7_9.5.x86_64.rpm Downloading diffutils-3.3-5.el7.i686.rpm Downloading diffutils-3.3-5.el7.x86_64.rpm Downloading dracut-033-572.el7.x86_64.rpm Downloading elfutils-default-yama-scope-0.176-5.el7.noarch.rpm Downloading elfutils-libelf-0.176-5.el7.x86_64.rpm Downloading elfutils-libelf-0.176-5.el7.i686.rpm Downloading elfutils-libs-0.176-5.el7.x86_64.rpm Downloading elfutils-libs-0.176-5.el7.i686.rpm Downloading expat-2.1.0-12.el7.x86_64.rpm Downloading filesystem-3.2-25.el7.x86_64.rpm Downloading findutils-4.5.11-6.el7.x86_64.rpm Downloading gawk-4.0.2-4.el7_3.1.x86_64.rpm Downloading glib2-2.56.1-9.el7_9.i686.rpm Downloading glib2-2.56.1-9.el7_9.x86_64.rpm Downloading glibc-2.17-324.el7_9.i686.rpm Downloading glibc-2.17-324.el7_9.x86_64.rpm Downloading glibc-common-2.17-324.el7_9.x86_64.rpm Downloading gmp-6.0.0-15.el7.i686.rpm Downloading gmp-6.0.0-15.el7.x86_64.rpm Downloading gperftools-libs-2.6.1-1.el7.x86_64.rpm Downloading grep-2.20-3.el7.x86_64.rpm Downloading gzip-1.5-10.el7.x86_64.rpm Downloading hardlink-1.0-19.el7.x86_64.rpm Downloading info-5.1-5.el7.x86_64.rpm Downloading json-c-0.11-4.el7_0.x86_64.rpm Downloading keyutils-libs-1.5.8-3.el7.i686.rpm Downloading keyutils-libs-1.5.8-3.el7.x86_64.rpm Downloading kmod-20-28.el7.x86_64.rpm Downloading kmod-libs-20-28.el7.x86_64.rpm Downloading kpartx-0.4.9-134.el7_9.x86_64.rpm Downloading krb5-libs-1.15.1-50.el7.i686.rpm Downloading krb5-libs-1.15.1-50.el7.x86_64.rpm Downloading libacl-2.2.51-15.el7.x86_64.rpm Downloading libacl-2.2.51-15.el7.i686.rpm Downloading libattr-2.4.46-13.el7.i686.rpm Downloading libattr-2.4.46-13.el7.x86_64.rpm Downloading libblkid-2.23.2-65.el7_9.1.i686.rpm Downloading libblkid-2.23.2-65.el7_9.1.x86_64.rpm Downloading libcap-2.22-11.el7.x86_64.rpm Downloading libcap-2.22-11.el7.i686.rpm Downloading libcap-ng-0.7.5-4.el7.i686.rpm Downloading libcap-ng-0.7.5-4.el7.x86_64.rpm Downloading libcom_err-1.42.9-19.el7.x86_64.rpm Downloading libcom_err-1.42.9-19.el7.i686.rpm Downloading libcurl-7.29.0-59.el7_9.1.i686.rpm Downloading libcurl-7.29.0-59.el7_9.1.x86_64.rpm Downloading libdb-5.3.21-25.el7.i686.rpm Downloading libdb-5.3.21-25.el7.x86_64.rpm Downloading libdb-utils-5.3.21-25.el7.x86_64.rpm Downloading libffi-3.0.13-19.el7.i686.rpm Downloading libffi-3.0.13-19.el7.x86_64.rpm Downloading libgcc-4.8.5-44.el7.x86_64.rpm Downloading libgcc-4.8.5-44.el7.i686.rpm Downloading libgcrypt-1.5.3-14.el7.x86_64.rpm Downloading libgcrypt-1.5.3-14.el7.i686.rpm Downloading libgpg-error-1.12-3.el7.i686.rpm Downloading libgpg-error-1.12-3.el7.x86_64.rpm Downloading libidn-1.28-4.el7.i686.rpm Downloading libidn-1.28-4.el7.x86_64.rpm Downloading libmount-2.23.2-65.el7_9.1.i686.rpm Downloading libmount-2.23.2-65.el7_9.1.x86_64.rpm Downloading libpwquality-1.2.3-5.el7.i686.rpm Downloading libpwquality-1.2.3-5.el7.x86_64.rpm Downloading libselinux-2.5-15.el7.x86_64.rpm Downloading libselinux-2.5-15.el7.i686.rpm Downloading libsemanage-2.5-14.el7.x86_64.rpm Downloading libsepol-2.5-10.el7.i686.rpm Downloading libsepol-2.5-10.el7.x86_64.rpm Downloading libsmartcols-2.23.2-65.el7_9.1.i686.rpm Downloading libsmartcols-2.23.2-65.el7_9.1.x86_64.rpm Downloading libssh2-1.8.0-4.el7.x86_64.rpm Downloading libssh2-1.8.0-4.el7.i686.rpm Downloading libstdc++-4.8.5-44.el7.x86_64.rpm Downloading libstdc++-4.8.5-44.el7.i686.rpm Downloading libtasn1-4.10-1.el7.i686.rpm Downloading libtasn1-4.10-1.el7.x86_64.rpm Downloading libuser-0.60-9.el7.x86_64.rpm Downloading libuser-0.60-9.el7.i686.rpm Downloading libutempter-1.1.6-4.el7.x86_64.rpm Downloading libutempter-1.1.6-4.el7.i686.rpm Downloading libuuid-2.23.2-65.el7_9.1.x86_64.rpm Downloading libuuid-2.23.2-65.el7_9.1.i686.rpm Downloading libverto-0.2.5-4.el7.i686.rpm Downloading libverto-0.2.5-4.el7.x86_64.rpm Downloading libxml2-2.9.1-6.el7.5.x86_64.rpm Downloading lua-5.1.4-15.el7.x86_64.rpm Downloading lz4-1.8.3-1.el7.x86_64.rpm Downloading lz4-1.8.3-1.el7.i686.rpm Downloading make-3.82-24.el7.x86_64.rpm Downloading ncurses-5.9-14.20130511.el7_4.x86_64.rpm Downloading ncurses-base-5.9-14.20130511.el7_4.noarch.rpm Downloading ncurses-libs-5.9-14.20130511.el7_4.x86_64.rpm Downloading ncurses-libs-5.9-14.20130511.el7_4.i686.rpm Downloading nginx-1.20.1-2.el7.x86_64.rpm Downloading nginx-filesystem-1.20.1-2.el7.noarch.rpm Downloading nspr-4.25.0-2.el7_9.x86_64.rpm Downloading nspr-4.25.0-2.el7_9.i686.rpm Downloading nss-3.53.1-7.el7_9.x86_64.rpm Downloading nss-3.53.1-7.el7_9.i686.rpm Downloading nss-pem-1.0.3-7.el7.x86_64.rpm Downloading nss-pem-1.0.3-7.el7.i686.rpm Downloading nss-softokn-3.53.1-6.el7_9.x86_64.rpm Downloading nss-softokn-3.53.1-6.el7_9.i686.rpm Downloading nss-softokn-freebl-3.53.1-6.el7_9.i686.rpm Downloading nss-softokn-freebl-3.53.1-6.el7_9.x86_64.rpm Downloading nss-sysinit-3.53.1-7.el7_9.x86_64.rpm Downloading nss-tools-3.53.1-7.el7_9.x86_64.rpm Downloading nss-util-3.53.1-1.el7_9.i686.rpm Downloading nss-util-3.53.1-1.el7_9.x86_64.rpm Downloading openldap-2.4.44-23.el7_9.i686.rpm Downloading openldap-2.4.44-23.el7_9.x86_64.rpm Downloading openssl-1.0.2k-21.el7_9.x86_64.rpm Downloading openssl-libs-1.0.2k-21.el7_9.x86_64.rpm Downloading openssl-libs-1.0.2k-21.el7_9.i686.rpm Downloading openssl11-libs-1.1.1g-3.el7.x86_64.rpm Downloading p11-kit-0.23.5-3.el7.i686.rpm Downloading p11-kit-0.23.5-3.el7.x86_64.rpm Downloading p11-kit-trust-0.23.5-3.el7.i686.rpm Downloading p11-kit-trust-0.23.5-3.el7.x86_64.rpm Downloading pam-1.1.8-23.el7.x86_64.rpm Downloading pam-1.1.8-23.el7.i686.rpm Downloading pcre-8.32-17.el7.i686.rpm Downloading pcre-8.32-17.el7.x86_64.rpm Downloading pkgconfig-0.27.1-4.el7.x86_64.rpm Downloading pkgconfig-0.27.1-4.el7.i686.rpm Downloading popt-1.13-16.el7.i686.rpm Downloading popt-1.13-16.el7.x86_64.rpm Downloading procps-ng-3.3.10-28.el7.x86_64.rpm Downloading procps-ng-3.3.10-28.el7.i686.rpm Downloading qrencode-libs-3.4.1-3.el7.x86_64.rpm Downloading readline-6.2-11.el7.i686.rpm Downloading readline-6.2-11.el7.x86_64.rpm Downloading rpm-4.11.3-45.el7.x86_64.rpm Downloading rpm-libs-4.11.3-45.el7.x86_64.rpm Downloading sed-4.2.2-7.el7.x86_64.rpm Downloading setup-2.8.71-11.el7.noarch.rpm Downloading shadow-utils-4.6-5.el7.x86_64.rpm Downloading shared-mime-info-1.8-5.el7.x86_64.rpm Downloading sqlite-3.7.17-8.el7_7.1.i686.rpm Downloading sqlite-3.7.17-8.el7_7.1.x86_64.rpm Downloading systemd-219-78.el7_9.3.x86_64.rpm Downloading systemd-libs-219-78.el7_9.3.x86_64.rpm Downloading systemd-libs-219-78.el7_9.3.i686.rpm Downloading tar-1.26-35.el7.x86_64.rpm Downloading tzdata-2021a-1.el7.noarch.rpm Downloading ustr-1.0.4-16.el7.x86_64.rpm Downloading util-linux-2.23.2-65.el7_9.1.x86_64.rpm Downloading util-linux-2.23.2-65.el7_9.1.i686.rpm Downloading xz-5.2.2-1.el7.x86_64.rpm Downloading xz-libs-5.2.2-1.el7.x86_64.rpm Downloading xz-libs-5.2.2-1.el7.i686.rpm Downloading zlib-1.2.7-19.el7_9.x86_64.rpm Downloading zlib-1.2.7-19.el7_9.i686.rpm [root@localhost ~]# ll total 114432 -rw-r--r--. 1 root root83408 Apr42020 acl-2.2.51-15.el7.x86_64.rpm -rw-------. 1 root root1201 Jun 25 09:37 anaconda-ks.cfg -rw-r--r--. 1 root root104824 Aug 232019 audit-libs-2.8.5-4.el7.i686.rpm -rw-r--r--. 1 root root104408 Aug 232019 audit-libs-2.8.5-4.el7.x86_64.rpm -rw-r--r--. 1 root root5124 Jul42014 basesystem-10.0-7.el7.centos.noarch.rpm -rw-r--r--. 1 root root1037976 Apr42020 bash-4.2.46-34.el7.x86_64.rpm -rw-r--r--. 1 root root6196400 Oct 152020 binutils-2.27-44.base.el7.x86_64.rpm -rw-r--r--. 1 root root40620 Nov 252015 bzip2-libs-1.0.6-13.el7.i686.rpm -rw-r--r--. 1 root root40740 Nov 252015 bzip2-libs-1.0.6-13.el7.x86_64.rpm -rw-r--r--. 1 root root391340 Jun 242020 ca-certificates-2020.2.41-70.0.el7_8.noarch.rpm -rw-r--r--. 1 root root93872 Jul42014 centos-indexhtml-7-9.el7.centos.noarch.rpm -rw-r--r--. 1 root root 22354804 Oct12015 centos-logos-70.0.6-3.el7.centos.noarch.rpm -rw-r--r--. 1 root root27288 Dec32020 centos-release-7-9.2009.1.el7.centos.x86_64.rpm -rw-r--r--. 1 root root186016 Oct 152020 chkconfig-1.7.6-1.el7.x86_64.rpm -rw-r--r--. 1 root root3417472 Nov 182020 coreutils-8.22-24.el7_9.2.x86_64.rpm -rw-r--r--. 1 root root216500 Oct 152020 cpio-2.11-28.el7.x86_64.rpm -rw-r--r--. 1 root root80952 Jul42014 cracklib-2.9.0-11.el7.i686.rpm -rw-r--r--. 1 root root81964 Jul42014 cracklib-2.9.0-11.el7.x86_64.rpm -rw-r--r--. 1 root root3751124 Jul42014 cracklib-dicts-2.9.0-11.el7.x86_64.rpm -rw-r--r--. 1 root root346748 Apr42020 cryptsetup-libs-2.0.3-6.el7.x86_64.rpm -rw-r--r--. 1 root root277288 Nov 182020 curl-7.29.0-59.el7_9.1.x86_64.rpm -rw-r--r--. 1 root root158124 Apr 252018 cyrus-sasl-lib-2.1.26-23.el7.i686.rpm -rw-r--r--. 1 root root159156 Apr 252018 cyrus-sasl-lib-2.1.26-23.el7.x86_64.rpm -rw-r--r--. 1 root root251300 Oct 152020 dbus-1.10.24-15.el7.x86_64.rpm -rw-r--r--. 1 root root173428 Oct 152020 dbus-libs-1.10.24-15.el7.x86_64.rpm -rw-r--r--. 1 root root304544 Apr 29 23:03 device-mapper-1.02.170-6.el7_9.5.x86_64.rpm -rw-r--r--. 1 root root335628 Apr 29 23:04 device-mapper-libs-1.02.170-6.el7_9.5.i686.rpm -rw-r--r--. 1 root root333248 Apr 29 23:03 device-mapper-libs-1.02.170-6.el7_9.5.x86_64.rpm -rw-r--r--. 1 root root327892 Aug 232019 diffutils-3.3-5.el7.i686.rpm -rw-r--r--. 1 root root329696 Aug 232019 diffutils-3.3-5.el7.x86_64.rpm -rw-r--r--. 1 root root337240 Oct 152020 dracut-033-572.el7.x86_64.rpm -rw-r--r--. 1 root root33680 Oct 152020 elfutils-default-yama-scope-0.176-5.el7.noarch.rpm -rw-r--r--. 1 root root204904 Oct 152020 elfutils-libelf-0.176-5.el7.i686.rpm -rw-r--r--. 1 root root199352 Oct 152020 elfutils-libelf-0.176-5.el7.x86_64.rpm -rw-r--r--. 1 root root325648 Oct 152020 elfutils-libs-0.176-5.el7.i686.rpm -rw-r--r--. 1 root root297844 Oct 152020 elfutils-libs-0.176-5.el7.x86_64.rpm -rw-r--r--. 1 root root82628 Oct 152020 expat-2.1.0-12.el7.x86_64.rpm -rw-r--r--. 1 root root1067124 Apr 252018 filesystem-3.2-25.el7.x86_64.rpm -rw-r--r--. 1 root root572216 Nov 122018 findutils-4.5.11-6.el7.x86_64.rpm -rw-r--r--. 1 root root894476 Jun 292017 gawk-4.0.2-4.el7_3.1.x86_64.rpm -rw-r--r--. 1 root root2554540 Jun 11 23:07 glib2-2.56.1-9.el7_9.i686.rpm -rw-r--r--. 1 root root2571788 Jun 11 23:04 glib2-2.56.1-9.el7_9.x86_64.rpm -rw-r--r--. 1 root root4465908 Apr 29 23:05 glibc-2.17-324.el7_9.i686.rpm -rw-r--r--. 1 root root3817176 Apr 29 23:03 glibc-2.17-324.el7_9.x86_64.rpm -rw-r--r--. 1 root root 12059644 Apr 29 23:03 glibc-common-2.17-324.el7_9.x86_64.rpm -rw-r--r--. 1 root root425588 Aug 112017 gmp-6.0.0-15.el7.i686.rpm -rw-r--r--. 1 root root287768 Aug 112017 gmp-6.0.0-15.el7.x86_64.rpm -rw-r--r--. 1 root root278636 Apr 252018 gperftools-libs-2.6.1-1.el7.x86_64.rpm -rw-r--r--. 1 root root352624 Aug 112017 grep-2.20-3.el7.x86_64.rpm -rw-r--r--. 1 root root132636 Apr 252018 gzip-1.5-10.el7.x86_64.rpm -rw-r--r--. 1 root root14640 Jul42014 hardlink-1.0-19.el7.x86_64.rpm -rw-r--r--. 1 root root238564 Apr 252018 info-5.1-5.el7.x86_64.rpm -rw-r--r--. 1 root root31312 Jul52014 json-c-0.11-4.el7_0.x86_64.rpm -rw-r--r--. 1 root root25852 Jul42014 keyutils-libs-1.5.8-3.el7.i686.rpm -rw-r--r--. 1 root root25920 Jul42014 keyutils-libs-1.5.8-3.el7.x86_64.rpm -rw-r--r--. 1 root root125760 Apr42020 kmod-20-28.el7.x86_64.rpm -rw-r--r--. 1 root root52412 Apr42020 kmod-libs-20-28.el7.x86_64.rpm -rw-r--r--. 1 root root82532 Nov 182020 kpartx-0.4.9-134.el7_9.x86_64.rpm -rw-r--r--. 1 root root830508 Oct 152020 krb5-libs-1.15.1-50.el7.i686.rpm -rw-r--r--. 1 root root828540 Oct 152020 krb5-libs-1.15.1-50.el7.x86_64.rpm -rw-r--r--. 1 root root28280 Apr42020 libacl-2.2.51-15.el7.i686.rpm -rw-r--r--. 1 root root27976 Apr42020 libacl-2.2.51-15.el7.x86_64.rpm -rw-r--r--. 1 root root18632 Apr 252018 libattr-2.4.46-13.el7.i686.rpm -rw-r--r--. 1 root root18656 Apr 252018 libattr-2.4.46-13.el7.x86_64.rpm -rw-r--r--. 1 root root191636 Feb42021 libblkid-2.23.2-65.el7_9.1.i686.rpm -rw-r--r--. 1 root root187272 Feb42021 libblkid-2.23.2-65.el7_9.1.x86_64.rpm -rw-r--r--. 1 root root48904 Apr42020 libcap-2.22-11.el7.i686.rpm -rw-r--r--. 1 root root48548 Apr42020 libcap-2.22-11.el7.x86_64.rpm -rw-r--r--. 1 root root24976 Nov 252015 libcap-ng-0.7.5-4.el7.i686.rpm -rw-r--r--. 1 root root25244 Nov 252015 libcap-ng-0.7.5-4.el7.x86_64.rpm -rw-r--r--. 1 root root43132 Oct 152020 libcom_err-1.42.9-19.el7.i686.rpm -rw-r--r--. 1 root root43092 Oct 152020 libcom_err-1.42.9-19.el7.x86_64.rpm -rw-r--r--. 1 root root231516 Nov 182020 libcurl-7.29.0-59.el7_9.1.i686.rpm -rw-r--r--. 1 root root228648 Nov 182020 libcurl-7.29.0-59.el7_9.1.x86_64.rpm -rw-r--r--. 1 root root748832 Aug 232019 libdb-5.3.21-25.el7.i686.rpm -rw-r--r--. 1 root root737156 Aug 232019 libdb-5.3.21-25.el7.x86_64.rpm -rw-r--r--. 1 root root135576 Aug 232019 libdb-utils-5.3.21-25.el7.x86_64.rpm -rw-r--r--. 1 root root28144 Apr42020 libffi-3.0.13-19.el7.i686.rpm -rw-r--r--. 1 root root30960 Apr42020 libffi-3.0.13-19.el7.x86_64.rpm -rw-r--r--. 1 root root113236 Oct 152020 libgcc-4.8.5-44.el7.i686.rpm -rw-r--r--. 1 root root105308 Oct 152020 libgcc-4.8.5-44.el7.x86_64.rpm -rw-r--r--. 1 root root272044 Aug 112017 libgcrypt-1.5.3-14.el7.i686.rpm -rw-r--r--. 1 root root269660 Aug 112017 libgcrypt-1.5.3-14.el7.x86_64.rpm -rw-r--r--. 1 root root89068 Jul42014 libgpg-error-1.12-3.el7.i686.rpm -rw-r--r--. 1 root root89332 Jul42014 libgpg-error-1.12-3.el7.x86_64.rpm -rw-r--r--. 1 root root213888 Nov 252015 libidn-1.28-4.el7.i686.rpm -rw-r--r--. 1 root root213816 Nov 252015 libidn-1.28-4.el7.x86_64.rpm -rw-r--r--. 1 root root188712 Feb42021 libmount-2.23.2-65.el7_9.1.i686.rpm -rw-r--r--. 1 root root189228 Feb42021 libmount-2.23.2-65.el7_9.1.x86_64.rpm -rw-r--r--. 1 root root87100 Apr 252018 libpwquality-1.2.3-5.el7.i686.rpm -rw-r--r--. 1 root root86540 Apr 252018 libpwquality-1.2.3-5.el7.x86_64.rpm -rw-r--r--. 1 root root169856 Apr42020 libselinux-2.5-15.el7.i686.rpm -rw-r--r--. 1 root root166012 Apr42020 libselinux-2.5-15.el7.x86_64.rpm -rw-r--r--. 1 root root154244 Nov 122018 libsemanage-2.5-14.el7.x86_64.rpm -rw-r--r--. 1 root root301460 Nov 122018 libsepol-2.5-10.el7.i686.rpm -rw-r--r--. 1 root root304196 Nov 122018 libsepol-2.5-10.el7.x86_64.rpm -rw-r--r--. 1 root root147288 Feb42021 libsmartcols-2.23.2-65.el7_9.1.i686.rpm -rw-r--r--. 1 root root146164 Feb42021 libsmartcols-2.23.2-65.el7_9.1.x86_64.rpm -rw-r--r--. 1 root root90480 Oct 152020 libssh2-1.8.0-4.el7.i686.rpm -rw-r--r--. 1 root root89984 Oct 152020 libssh2-1.8.0-4.el7.x86_64.rpm -rw-r--r--. 1 root root326568 Oct 152020 libstdc++-4.8.5-44.el7.i686.rpm -rw-r--r--. 1 root root313196 Oct 152020 libstdc++-4.8.5-44.el7.x86_64.rpm -rw-r--r--. 1 root root328116 Aug 112017 libtasn1-4.10-1.el7.i686.rpm -rw-r--r--. 1 root root328028 Aug 112017 libtasn1-4.10-1.el7.x86_64.rpm -rw-r--r--. 1 root root405604 Apr 252018 libuser-0.60-9.el7.i686.rpm -rw-r--r--. 1 root root409732 Apr 252018 libuser-0.60-9.el7.x86_64.rpm -rw-r--r--. 1 root root25576 Jul42014 libutempter-1.1.6-4.el7.i686.rpm -rw-r--r--. 1 root root25428 Jul42014 libutempter-1.1.6-4.el7.x86_64.rpm -rw-r--r--. 1 root root87036 Feb42021 libuuid-2.23.2-65.el7_9.1.i686.rpm -rw-r--r--. 1 root root86332 Feb42021 libuuid-2.23.2-65.el7_9.1.x86_64.rpm -rw-r--r--. 1 root root16728 Jul42014 libverto-0.2.5-4.el7.i686.rpm -rw-r--r--. 1 root root16820 Jul42014 libverto-0.2.5-4.el7.x86_64.rpm -rw-r--r--. 1 root root684200 Oct 152020 libxml2-2.9.1-6.el7.5.x86_64.rpm -rw-r--r--. 1 root root205412 Nov 212016 lua-5.1.4-15.el7.x86_64.rpm -rw-r--r--. 1 root root98452 Oct 152020 lz4-1.8.3-1.el7.i686.rpm -rw-r--r--. 1 root root86572 Oct 152020 lz4-1.8.3-1.el7.x86_64.rpm -rw-r--r--. 1 root root430712 Aug 232019 make-3.82-24.el7.x86_64.rpm -rw-r--r--. 1 root root310928 Sep72017 ncurses-5.9-14.20130511.el7_4.x86_64.rpm -rw-r--r--. 1 root root69900 Sep72017 ncurses-base-5.9-14.20130511.el7_4.noarch.rpm -rw-r--r--. 1 root root323976 Sep72017 ncurses-libs-5.9-14.20130511.el7_4.i686.rpm -rw-r--r--. 1 root root323192 Sep72017 ncurses-libs-5.9-14.20130511.el7_4.x86_64.rpm -rw-r--r--. 1 root root600265 Jun2 08:27 nginx-1.20.1-2.el7.x86_64.rpm -rw-r--r--. 1 root root23333 Jun2 08:27 nginx-filesystem-1.20.1-2.el7.noarch.rpm -rw-r--r--. 1 root root131612 Oct 152020 nspr-4.25.0-2.el7_9.i686.rpm -rw-r--r--. 1 root root129900 Oct 152020 nspr-4.25.0-2.el7_9.x86_64.rpm -rw-r--r--. 1 root root890208 Apr 29 23:05 nss-3.53.1-7.el7_9.i686.rpm -rw-r--r--. 1 root root889384 Apr 29 23:04 nss-3.53.1-7.el7_9.x86_64.rpm -rw-r--r--. 1 root root74872 Aug 232019 nss-pem-1.0.3-7.el7.i686.rpm -rw-r--r--. 1 root root75584 Aug 232019 nss-pem-1.0.3-7.el7.x86_64.rpm -rw-r--r--. 1 root root370104 Nov72020 nss-softokn-3.53.1-6.el7_9.i686.rpm -rw-r--r--. 1 root root362588 Nov72020 nss-softokn-3.53.1-6.el7_9.x86_64.rpm -rw-r--r--. 1 root root329232 Nov72020 nss-softokn-freebl-3.53.1-6.el7_9.i686.rpm -rw-r--r--. 1 root root329744 Nov72020 nss-softokn-freebl-3.53.1-6.el7_9.x86_64.rpm -rw-r--r--. 1 root root67104 Apr 29 23:04 nss-sysinit-3.53.1-7.el7_9.x86_64.rpm -rw-r--r--. 1 root root547892 Apr 29 23:04 nss-tools-3.53.1-7.el7_9.x86_64.rpm -rw-r--r--. 1 root root79396 Oct 152020 nss-util-3.53.1-1.el7_9.i686.rpm -rw-r--r--. 1 root root80948 Oct 152020 nss-util-3.53.1-1.el7_9.x86_64.rpm -rw-r--r--. 1 root root363460 Apr 29 23:05 openldap-2.4.44-23.el7_9.i686.rpm -rw-r--r--. 1 root root364488 Apr 29 23:04 openldap-2.4.44-23.el7_9.x86_64.rpm -rw-r--r--. 1 root root505208 Dec 182020 openssl-1.0.2k-21.el7_9.x86_64.rpm -rw-r--r--. 1 root root1521105 Mar 30 07:56 openssl11-libs-1.1.1g-3.el7.x86_64.rpm -rw-r--r--. 1 root root1020608 Dec 182020 openssl-libs-1.0.2k-21.el7_9.i686.rpm -rw-r--r--. 1 root root1254644 Dec 182020 openssl-libs-1.0.2k-21.el7_9.x86_64.rpm -rw-r--r--. 1 root root247076 Aug 112017 p11-kit-0.23.5-3.el7.i686.rpm -rw-r--r--. 1 root root257620 Aug 112017 p11-kit-0.23.5-3.el7.x86_64.rpm -rw-r--r--. 1 root root131504 Aug 112017 p11-kit-trust-0.23.5-3.el7.i686.rpm -rw-r--r--. 1 root root131984 Aug 112017 p11-kit-trust-0.23.5-3.el7.x86_64.rpm -rw-r--r--. 1 root root736976 Apr42020 pam-1.1.8-23.el7.i686.rpm -rw-r--r--. 1 root root737960 Apr42020 pam-1.1.8-23.el7.x86_64.rpm -rw-r--r--. 1 root root430428 Aug 112017 pcre-8.32-17.el7.i686.rpm -rw-r--r--. 1 root root432020 Aug 112017 pcre-8.32-17.el7.x86_64.rpm -rw-r--r--. 1 root root54276 Jul42014 pkgconfig-0.27.1-4.el7.i686.rpm -rw-r--r--. 1 root root54928 Jul42014 pkgconfig-0.27.1-4.el7.x86_64.rpm -rw-r--r--. 1 root root42436 Jul42014 popt-1.13-16.el7.i686.rpm -rw-r--r--. 1 root root42740 Jul42014 popt-1.13-16.el7.x86_64.rpm -rw-r--r--. 1 root root292948 Oct 152020 procps-ng-3.3.10-28.el7.i686.rpm -rw-r--r--. 1 root root298092 Oct 152020 procps-ng-3.3.10-28.el7.x86_64.rpm -rw-r--r--. 1 root root51112 Jul42014 qrencode-libs-3.4.1-3.el7.x86_64.rpm -rw-r--r--. 1 root root194000 Aug 232019 readline-6.2-11.el7.i686.rpm -rw-r--r--. 1 root root197696 Aug 232019 readline-6.2-11.el7.x86_64.rpm -rw-r--r--. 1 root root1219860 Oct 152020 rpm-4.11.3-45.el7.x86_64.rpm -rw-r--r--. 1 root root285088 Oct 152020 rpm-libs-4.11.3-45.el7.x86_64.rpm -rw-r--r--. 1 root root236688 Oct 152020 sed-4.2.2-7.el7.x86_64.rpm -rw-r--r--. 1 root root170000 Apr42020 setup-2.8.71-11.el7.noarch.rpm -rw-r--r--. 1 root root1250180 Aug 232019 shadow-utils-4.6-5.el7.x86_64.rpm -rw-r--r--. 1 root root319576 Apr42020 shared-mime-info-1.8-5.el7.x86_64.rpm -rw-r--r--. 1 root root406104 Jan 292020 sqlite-3.7.17-8.el7_7.1.i686.rpm -rw-r--r--. 1 root root403100 Jan 292020 sqlite-3.7.17-8.el7_7.1.x86_64.rpm -rw-r--r--. 1 root root5324844 Feb42021 systemd-219-78.el7_9.3.x86_64.rpm -rw-r--r--. 1 root root435292 Feb42021 systemd-libs-219-78.el7_9.3.i686.rpm -rw-r--r--. 1 root root428468 Feb42021 systemd-libs-219-78.el7_9.3.x86_64.rpm -rw-r--r--. 1 root root865848 Nov 122018 tar-1.26-35.el7.x86_64.rpm -rw-r--r--. 1 root root513088 Jan 272021 tzdata-2021a-1.el7.noarch.rpm -rw-r--r--. 1 root root94456 Jul42014 ustr-1.0.4-16.el7.x86_64.rpm -rw-r--r--. 1 root root2104080 Feb42021 util-linux-2.23.2-65.el7_9.1.i686.rpm -rw-r--r--. 1 root root2076012 Feb42021 util-linux-2.23.2-65.el7_9.1.x86_64.rpm -rw-r--r--. 1 root root234160 Nov 212016 xz-5.2.2-1.el7.x86_64.rpm -rw-r--r--. 1 root root111716 Nov 212016 xz-libs-5.2.2-1.el7.i686.rpm -rw-r--r--. 1 root root105728 Nov 212016 xz-libs-5.2.2-1.el7.x86_64.rpm -rw-r--r--. 1 root root92968 Feb42021 zlib-1.2.7-19.el7_9.i686.rpm -rw-r--r--. 1 root root92068 Feb42021 zlib-1.2.7-19.el7_9.x86_64.rpm [root@localhost ~]#

使用 yumdownloader 命令下软件依赖
[root@localhost ~]# yumdownloader --resolve --destdir=/tmp ansible Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.tuna.tsinghua.edu.cn * epel: mirrors.tuna.tsinghua.edu.cn * extras: mirrors.tuna.tsinghua.edu.cn * updates: mirrors.tuna.tsinghua.edu.cn --> Running transaction check ---> Package ansible.noarch 0:2.9.24-2.el7 will be installed --> Processing Dependency: PyYAML for package: ansible-2.9.24-2.el7.noarch --> Processing Dependency: python-httplib2 for package: ansible-2.9.24-2.el7.noarch --> Processing Dependency: python-jinja2 for package: ansible-2.9.24-2.el7.noarch --> Processing Dependency: python-paramiko for package: ansible-2.9.24-2.el7.noarch --> Processing Dependency: python-setuptools for package: ansible-2.9.24-2.el7.noarch --> Processing Dependency: python-six for package: ansible-2.9.24-2.el7.noarch --> Processing Dependency: python2-cryptography for package: ansible-2.9.24-2.el7.noarch --> Processing Dependency: python2-jmespath for package: ansible-2.9.24-2.el7.noarch --> Processing Dependency: sshpass for package: ansible-2.9.24-2.el7.noarch --> Running transaction check ---> Package PyYAML.x86_64 0:3.10-11.el7 will be installed --> Processing Dependency: libyaml-0.so.2()(64bit) for package: PyYAML-3.10-11.el7.x86_64 ---> Package python-jinja2.noarch 0:2.7.2-4.el7 will be installed --> Processing Dependency: python-babel >= 0.8 for package: python-jinja2-2.7.2-4.el7.noarch --> Processing Dependency: python-markupsafe for package: python-jinja2-2.7.2-4.el7.noarch ---> Package python-paramiko.noarch 0:2.1.1-9.el7 will be installed --> Processing Dependency: python2-pyasn1 for package: python-paramiko-2.1.1-9.el7.noarch ---> Package python-setuptools.noarch 0:0.9.8-7.el7 will be installed --> Processing Dependency: python-backports-ssl_match_hostname for package: python-setuptools-0.9.8-7.el7.noarch ---> Package python-six.noarch 0:1.9.0-2.el7 will be installed ---> Package python2-cryptography.x86_64 0:1.7.2-2.el7 will be installed --> Processing Dependency: python-idna >= 2.0 for package: python2-cryptography-1.7.2-2.el7.x86_64 --> Processing Dependency: python-cffi >= 1.4.1 for package: python2-cryptography-1.7.2-2.el7.x86_64 --> Processing Dependency: python-ipaddress for package: python2-cryptography-1.7.2-2.el7.x86_64 --> Processing Dependency: python-enum34 for package: python2-cryptography-1.7.2-2.el7.x86_64 ---> Package python2-httplib2.noarch 0:0.18.1-3.el7 will be installed ---> Package python2-jmespath.noarch 0:0.9.4-2.el7 will be installed ---> Package sshpass.x86_64 0:1.06-2.el7 will be installed --> Running transaction check ---> Package libyaml.x86_64 0:0.1.4-11.el7_0 will be installed ---> Package python-babel.noarch 0:0.9.6-8.el7 will be installed ---> Package python-backports-ssl_match_hostname.noarch 0:3.5.0.1-1.el7 will be installed --> Processing Dependency: python-backports for package: python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch ---> Package python-cffi.x86_64 0:1.6.0-5.el7 will be installed --> Processing Dependency: python-pycparser for package: python-cffi-1.6.0-5.el7.x86_64 ---> Package python-enum34.noarch 0:1.0.4-1.el7 will be installed ---> Package python-idna.noarch 0:2.4-1.el7 will be installed ---> Package python-ipaddress.noarch 0:1.0.16-2.el7 will be installed ---> Package python-markupsafe.x86_64 0:0.11-10.el7 will be installed ---> Package python2-pyasn1.noarch 0:0.1.9-7.el7 will be installed --> Running transaction check ---> Package python-backports.x86_64 0:1.0-8.el7 will be installed ---> Package python-pycparser.noarch 0:2.14-1.el7 will be installed --> Processing Dependency: python-ply for package: python-pycparser-2.14-1.el7.noarch --> Running transaction check ---> Package python-ply.noarch 0:3.4-11.el7 will be installed --> Finished Dependency Resolution (1/22): PyYAML-3.10-11.el7.x86_64.rpm| 153 kB00:00:00 (2/22): python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch.rpm|13 kB00:00:00 (3/22): libyaml-0.1.4-11.el7_0.x86_64.rpm|55 kB00:00:00 (4/22): python-cffi-1.6.0-5.el7.x86_64.rpm| 218 kB00:00:00 (5/22): python-backports-1.0-8.el7.x86_64.rpm| 5.8 kB00:00:00 (6/22): python-idna-2.4-1.el7.noarch.rpm|94 kB00:00:00 (7/22): python-enum34-1.0.4-1.el7.noarch.rpm|52 kB00:00:00 (8/22): python-jinja2-2.7.2-4.el7.noarch.rpm| 519 kB00:00:00 (9/22): python-babel-0.9.6-8.el7.noarch.rpm| 1.4 MB00:00:00 (10/22): python-paramiko-2.1.1-9.el7.noarch.rpm| 269 kB00:00:00 (11/22): python-ply-3.4-11.el7.noarch.rpm| 123 kB00:00:00 (12/22): python-pycparser-2.14-1.el7.noarch.rpm| 104 kB00:00:00 (13/22): python-six-1.9.0-2.el7.noarch.rpm|29 kB00:00:00 (14/22): python-setuptools-0.9.8-7.el7.noarch.rpm| 397 kB00:00:00 (15/22): python2-cryptography-1.7.2-2.el7.x86_64.rpm| 502 kB00:00:00 (16/22): python-markupsafe-0.11-10.el7.x86_64.rpm|25 kB00:00:00 (17/22): python-ipaddress-1.0.16-2.el7.noarch.rpm|34 kB00:00:00 (18/22): ansible-2.9.24-2.el7.noarch.rpm|17 MB00:00:01 (19/22): python2-httplib2-0.18.1-3.el7.noarch.rpm| 125 kB00:00:00 (20/22): python2-jmespath-0.9.4-2.el7.noarch.rpm|41 kB00:00:00 (21/22): sshpass-1.06-2.el7.x86_64.rpm|21 kB00:00:00 (22/22): python2-pyasn1-0.1.9-7.el7.noarch.rpm| 100 kB00:00:00 [root@localhost ~]# [root@localhost ~]# [root@localhost ~]# ll /tmp/* -rw-r--r--. 1 root root 17829351 Jul 29 02:38 /tmp/ansible-2.9.24-2.el7.noarch.rpm -rw-r--r--. 1 root root56068 Jan 302015 /tmp/libyaml-0.1.4-11.el7_0.x86_64.rpm -rw-r--r--. 1 root root514504 Apr 252018 /tmp/python2-cryptography-1.7.2-2.el7.x86_64.rpm -rw-r--r--. 1 root root128003 Jun 202020 /tmp/python2-httplib2-0.18.1-3.el7.noarch.rpm -rw-r--r--. 1 root root42303 Apr 232020 /tmp/python2-jmespath-0.9.4-2.el7.noarch.rpm -rw-r--r--. 1 root root102132 Nov 212016 /tmp/python2-pyasn1-0.1.9-7.el7.noarch.rpm -rw-r--r--. 1 root root1426348 Jul42014 /tmp/python-babel-0.9.6-8.el7.noarch.rpm -rw-r--r--. 1 root root5932 Mar 142015 /tmp/python-backports-1.0-8.el7.x86_64.rpm -rw-r--r--. 1 root root12896 Apr 252018 /tmp/python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch.rpm -rw-r--r--. 1 root root223012 Nov 212016 /tmp/python-cffi-1.6.0-5.el7.x86_64.rpm -rw-r--r--. 1 root root53496 Nov 252015 /tmp/python-enum34-1.0.4-1.el7.noarch.rpm -rw-r--r--. 1 root root95952 Aug 112017 /tmp/python-idna-2.4-1.el7.noarch.rpm -rw-r--r--. 1 root root35176 Nov 212016 /tmp/python-ipaddress-1.0.16-2.el7.noarch.rpm -rw-r--r--. 1 root root531040 Aug 232019 /tmp/python-jinja2-2.7.2-4.el7.noarch.rpm -rw-r--r--. 1 root root25792 Jul42014 /tmp/python-markupsafe-0.11-10.el7.x86_64.rpm -rw-r--r--. 1 root root275112 Nov 212018 /tmp/python-paramiko-2.1.1-9.el7.noarch.rpm -rw-r--r--. 1 root root125732 Aug 112017 /tmp/python-ply-3.4-11.el7.noarch.rpm -rw-r--r--. 1 root root106984 Nov 252015 /tmp/python-pycparser-2.14-1.el7.noarch.rpm -rw-r--r--. 1 root root406404 Aug 112017 /tmp/python-setuptools-0.9.8-7.el7.noarch.rpm -rw-r--r--. 1 root root29404 Nov 252015 /tmp/python-six-1.9.0-2.el7.noarch.rpm -rw-r--r--. 1 root root156952 Jul42014 /tmp/PyYAML-3.10-11.el7.x86_64.rpm -rw-r--r--. 1 root root21896 Sep82017 /tmp/sshpass-1.06-2.el7.x86_64.rpm [root@localhost ~]# destdir:指定 rpm 包下载目录(不指定时,默认为当前目录) resolve:下载依赖的 rpm 包。

只会下载当前系统环境下所需的依赖包
yum 自带的 downloadonly 插件
[root@localhost ~]# yum -y install nginx --downloadonly --downloaddir=/tmp/ Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.tuna.tsinghua.edu.cn * epel: mirrors.tuna.tsinghua.edu.cn * extras: mirrors.tuna.tsinghua.edu.cn * updates: mirrors.tuna.tsinghua.edu.cn Resolving Dependencies --> Running transaction check ---> Package nginx.x86_64 1:1.20.1-2.el7 will be installed --> Processing Dependency: nginx-filesystem = 1:1.20.1-2.el7 for package: 1:nginx-1.20.1-2.el7.x86_64 --> Processing Dependency: libcrypto.so.1.1(OPENSSL_1_1_0)(64bit) for package: 1:nginx-1.20.1-2.el7.x86_64 --> Processing Dependency: libssl.so.1.1(OPENSSL_1_1_0)(64bit) for package: 1:nginx-1.20.1-2.el7.x86_64 --> Processing Dependency: libssl.so.1.1(OPENSSL_1_1_1)(64bit) for package: 1:nginx-1.20.1-2.el7.x86_64 --> Processing Dependency: nginx-filesystem for package: 1:nginx-1.20.1-2.el7.x86_64 --> Processing Dependency: redhat-indexhtml for package: 1:nginx-1.20.1-2.el7.x86_64 --> Processing Dependency: libcrypto.so.1.1()(64bit) for package: 1:nginx-1.20.1-2.el7.x86_64 --> Processing Dependency: libprofiler.so.0()(64bit) for package: 1:nginx-1.20.1-2.el7.x86_64 --> Processing Dependency: libssl.so.1.1()(64bit) for package: 1:nginx-1.20.1-2.el7.x86_64 --> Running transaction check ---> Package centos-indexhtml.noarch 0:7-9.el7.centos will be installed ---> Package gperftools-libs.x86_64 0:2.6.1-1.el7 will be installed ---> Package nginx-filesystem.noarch 1:1.20.1-2.el7 will be installed ---> Package openssl11-libs.x86_64 1:1.1.1g-3.el7 will be installed --> Finished Dependency ResolutionDependencies Resolved==================================================================================================================================== PackageArchVersionRepositorySize ==================================================================================================================================== Installing: nginxx86_641:1.20.1-2.el7epel586 k Installing for dependencies: centos-indexhtmlnoarch7-9.el7.centosbase92 k gperftools-libsx86_642.6.1-1.el7base272 k nginx-filesystemnoarch1:1.20.1-2.el7epel23 k openssl11-libsx86_641:1.1.1g-3.el7epel1.5 MTransaction Summary ==================================================================================================================================== Install1 Package (+4 Dependent packages)Total download size: 2.4 M Installed size: 6.7 M Background downloading packages, then exiting: (1/5): centos-indexhtml-7-9.el7.centos.noarch.rpm|92 kB00:00:00 (2/5): gperftools-libs-2.6.1-1.el7.x86_64.rpm| 272 kB00:00:00 (3/5): nginx-1.20.1-2.el7.x86_64.rpm| 586 kB00:00:00 (4/5): nginx-filesystem-1.20.1-2.el7.noarch.rpm|23 kB00:00:00 (5/5): openssl11-libs-1.1.1g-3.el7.x86_64.rpm| 1.5 MB00:00:00 ------------------------------------------------------------------------------------------------------------------------------------ Total8.0 MB/s | 2.4 MB00:00:00 exiting because "Download Only" specified [root@localhost ~]# ll /tmp/* -rw-r--r--. 1 root root93872 Jul42014 /tmp/centos-indexhtml-7-9.el7.centos.noarch.rpm -rw-r--r--. 1 root root278636 Apr 252018 /tmp/gperftools-libs-2.6.1-1.el7.x86_64.rpm -rw-r--r--. 1 root root600265 Jun2 08:27 /tmp/nginx-1.20.1-2.el7.x86_64.rpm -rw-r--r--. 1 root root23333 Jun2 08:27 /tmp/nginx-filesystem-1.20.1-2.el7.noarch.rpm -rw-r--r--. 1 root root 1521105 Mar 30 07:56 /tmp/openssl11-libs-1.1.1g-3.el7.x86_64.rpm -rw-------. 1 root root1183 Aug 16 11:24 /tmp/yum_save_tx.2021-08-16.11-24.riZifR.yumtx [root@localhost ~]#

YUM下载全量依赖
文章图片

    推荐阅读