RPM dependency issues when installing an RPM package on a server that has no internet
I am in a situation where I am trying to install a list of packages for Docker on a CentOS server in a remote location that has no internet service. I managed to copy the packages on that server but I am having all sorts of dependency problems.
Like when I tried installing the packages I am getting the below:
yum install --downloadonly docker-ce-*.rpm --downloaddir=.'
--> Finished Dependency Resolution Error: Package: audit-2.4.1-5.el7.x86_64 (@anaconda) Requires: audit-libs = 2.4.1-5.el7 Removing: audit-libs-2.4.1-5.el7.x86_64 (@anaconda) audit-libs = 2.4.1-5.el7 Updated By: audit-libs-2.6.5-3.el7_3.1.x86_64 (/audit-libs-2.6.5-3.el7_3.1.x86_64) audit-libs = 2.6.5-3.el7_3.1 Error: Package: systemd-sysv-219-19.el7.x86_64 (@anaconda) Requires: systemd = 219-19.el7 Removing: systemd-219-19.el7.x86_64 (@anaconda) systemd = 219-19.el7 Updated By: systemd-219-30.el7_3.9.x86_64 (/systemd-219-30.el7_3.9.x86_64) systemd = 219-30.el7_3.9 Error: Package: systemd-python-219-19.el7.x86_64 (@anaconda) Requires: systemd = 219-19.el7 Removing: systemd-219-19.el7.x86_64 (@anaconda) systemd = 219-19.el7 Updated By: systemd-219-30.el7_3.9.x86_64 (/systemd-219-30.el7_3.9.x86_64) systemd = 219-30.el7_3.9 Error: Package: libgudev1-219-19.el7.x86_64 (@anaconda) Requires: systemd-libs = 219-19.el7 Removing: systemd-libs-219-19.el7.x86_64 (@anaconda) systemd-libs = 219-19.el7 Updated By: systemd-libs-219-30.el7_3.9.x86_64 (/systemd-libs-219-30.el7_3.9.x86_64) systemd-libs = 219-30.el7_3.9 Error: Package: libcgroup-tools-0.41-8.el7.x86_64 (@anaconda) Requires: libcgroup(x86-64) = 0.41-8.el7 Removing: libcgroup-0.41-8.el7.x86_64 (@anaconda) libcgroup(x86-64) = 0.41-8.el7 Updated By: libcgroup-0.41-11.el7.x86_64 (/libcgroup-0.41-11.el7.x86_64) libcgroup(x86-64) = 0.41-11.el7 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
or via rpm upgrade command...
offline_repo]# rpm -Uvh audit-libs-2.6.5-3.el7_3.1.x86_64.rpm warning: audit-libs-2.6.5-3.el7_3.1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY error: Failed dependencies: audit-libs = 2.4.1-5.el7 is needed by (installed) audit-libs-python-2.4.1-5.el7.x86_64 audit-libs = 2.4.1-5.el7 is needed by (installed) audit-2.4.1-5.el7.x86_64
offline_repo]# rpm -Uvh systemd-219-30.el7_3.9.x86_64.rpm warning: systemd-219-30.el7_3.9.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY error: Failed dependencies: systemd-libs = 219-30.el7_3.9 is needed by systemd-219-30.el7_3.9.x86_64 systemd = 219-19.el7 is needed by (installed) systemd-sysv-219-19.el7.x86_64 systemd = 219-19.el7 is needed by (installed) systemd-python-219-19.el7.x86_6
offline_repo]# rpm -Uvh libcgroup-0.41-11.el7.x86_64.rpm warning: libcgroup-0.41-11.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY error: Failed dependencies: libcgroup(x86-64) = 0.41-8.el7 is needed by (installed) libcgroup-tools-0.41-8.el7.x86_64
My question is other than the obvious "how do i get around this without messing the server or removing any important dependent package" , what is the best way or do you have any best practice for dealing with these type of scenarios?
Thanks to anyone who can answer!
Last edited by justluckyg; 06-30-2017 at 11:04 PM.
|