Rhel
yumdownloader 沒有安裝最新的 rpm 版本
我們安裝了 epel repo,以便在 rhel 7.x 上為 docker 下載一些 rpm
參考 - https://www.centlinux.com/2019/02/install-docker-ce-on-offline-centos-7-machine.html
yum repolist | grep epel epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,257
現在我們要下載一些所需的 rpm 作為
yumdownloader --resolve libseccomp Loaded plugins: langpacks, product-id --> Running transaction check ---> Package libseccomp.i686 0:2.2.1-1.el7 will be installed ---> Package libseccomp.x86_64 0:2.2.1-1.el7 will be reinstalled --> Finished Dependency Resolution ls -ltr | grep libseccomp ls -ltr | grep libseccomp -rw-r--r-- 1 root root 50612 Nov 10 2016 libseccomp-2.2.1-1.el7.x86_64.rpm -rw-r--r-- 1 root root 48972 Nov 10 2016 libseccomp-2.2.1-1.el7.i686.rpm
但是我們很驚訝
yumdownload
沒有下載最新版本為什麼yumdownloader-,不下載最新的rpm版本?
注意 - 我們想要最新版本的原因是:
rpm -ivh --replacefiles --replacepkgs *.rpm warning: containerd.io-1.2.13-3.1.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY warning: container-selinux-2.119.1-1.c57a6f9.el7.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY warning: package docker-ce-selinux-17.03.3.ce-1.el7.noarch was already added, replacing with docker-ce-3:19.03.8-3.el7.x86_64 warning: libseccomp-2.2.1-1.el7.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY error: Failed dependencies: policycoreutils >= 2.5-11 is needed by container-selinux-2:2.119.1-1.c57a6f9.el7.noarch selinux-policy >= 3.13.1-216.el7 is needed by container-selinux-2:2.119.1-1.c57a6f9.el7.noarch selinux-policy-base >= 3.13.1-216.el7 is needed by container-selinux-2:2.119.1-1.c57a6f9.el7.noarch selinux-policy-targeted >= 3.13.1-216.el7 is needed by container-selinux-2:2.119.1-1.c57a6f9.el7.noarch
該
libseccomp
軟體包是 RHEL 而不是 EPEL 的一部分,因此一旦您向訂閱管理器註冊,您將從 RHEL 儲存庫下載它。RHEL 7 中的版本是 libseccomp-2.3.1-4.el7。