LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   RPM dependency issues when installing an RPM package on a server that has no internet (https://www.linuxquestions.org/questions/linux-newbie-8/rpm-dependency-issues-when-installing-an-rpm-package-on-a-server-that-has-no-internet-4175608889/)

justluckyg 06-30-2017 03:18 AM

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!

pan64 06-30-2017 05:16 AM

my god, please do not use that yellow, it is unreadable.
You may try to rpm install all of the required packages in one (I'm not really sure if that works, but...), or you may try to create a local repository, add it to yum config and use that repo to resolve dependencies.

justluckyg 06-30-2017 11:03 PM

sorry for the choice of font color :O

I think I would look into what you suggested. Thanks!

AwesomeMachine 07-01-2017 01:56 PM

Download all the necessary rpms and run rpm from the directory they're stored in. Just use *.rpm instead of a full filename. I think rpm can sort it out from there.


All times are GMT -5. The time now is 12:56 PM.