Offline sssd rpm install
Trying to install sssd and oddjob. I have checked the dependencies and they are listed for sssd as
3.7M sssd-common 1.14.0-43.el7_3.14.x86_64
586K sssd-ipa 1.14.0-43.el7_3.14.x86_64
327K sssd-ad 1.14.0-43.el7_3.14.x86_64
237K sssd-krb5-common 1.14.0-43.el7_3.14.x86_64
224K python-sssdconfig 1.14.0-43.el7_3.14.noarch
204K sssd-client 1.14.0-43.el7_3.14.x86_64
152K sssd-common-pac 1.14.0-43.el7_3.14.x86_64
152K sssd-ldap 1.14.0-43.el7_3.14.x86_64
130K sssd-proxy 1.14.0-43.el7_3.14.x86_64
77K sssd-krb5 1.14.0-43.el7_3.14.x86_64
35K sssd 1.14.0-43.el7_3.14.x86_64
I have downloaded the rpm's but I still cant install any as they each fail on another dependency. I'm installing as localinstall or using rpm -Uvh either fails with dependency issues. Is there a way to list all absolute dependencies? I dont have access to a repo on this specific host.
Responses
Hi Jesus,
What you are asking for is not easy to answer ... the dependencies that are needed depend on the packages being already installed.
It would take too much time to search through the whole dependency trees, which of course is possible, but this wouldn't help you.
You would have to download a bunch of packages you won't need. So, the most easy way to check what is needed, is to simulate an installation on a system with exactly the same setup, by executing sudo yum install sssd without the -y option. It shows you you which dependencies you have to download in order to install sssd offline. An example from my RHEL 7.4 Server installation :
=================================================================================================================
Package Arch Version
=================================================================================================================
Installing:
sssd x86_64 1.15.2-50.el7_4.2
Installing for dependencies:
c-ares x86_64 1.10.0-3.el7
http-parser x86_64 2.7.1-5.el7_4
libdhash x86_64 0.4.3-27.el7
libipa_hbac x86_64 1.15.2-50.el7_4.2
libsss_autofs x86_64 1.15.2-50.el7_4.2
libsss_certmap x86_64 1.15.2-50.el7_4.2
libsss_sudo x86_64 1.15.2-50.el7_4.2
python-sssdconfig noarch 1.15.2-50.el7_4.2
sssd-ad x86_64 1.15.2-50.el7_4.2
sssd-common x86_64 1.15.2-50.el7_4.2
sssd-common-pac x86_64 1.15.2-50.el7_4.2
sssd-ipa x86_64 1.15.2-50.el7_4.2
sssd-krb5 x86_64 1.15.2-50.el7_4.2
sssd-krb5-common x86_64 1.15.2-50.el7_4.2
sssd-ldap x86_64 1.15.2-50.el7_4.2
sssd-proxy x86_64 1.15.2-50.el7_4.2
Transaction Summary
=================================================================================================================
Install 1 Package (+16 Dependent packages)
Total download size: 3.6 M
Installed size: 6.7 M
Is this ok [y/d/N]: N
Exiting on user command
Regards,
Christian
No Jesus,
The order is not relevant ... put all .rpm files into the same folder, change to (or open a terminal in) this directory and execute : sudo yum localinstall *.rpm. When all necessary dependency packages are in that folder together with the sssd package, it should get installed successfully.
Regards,
Christian
sssd packaging is horrible in el7, and we are constantly having problems with missing dependencies (that aren't correctly defined).
For example, following Christian's method above, you will miss krb5-libs because the dependency isn't correctly defined in the sssd packaging. If krb5-libs is 1.14 (which it likely will be if it's an upgrade) but sssd-krb5 is 1.15, you will have issues starting the sssd service (if using a configuration that utilises kerberos). krb5-libs should be defined as a dependency/requirement for sssd.
# rpm -q krb5-libs sssd-krb5
krb5-libs-1.15.1-8.el7.x86_64
sssd-krb5-1.15.2-50.el7_4.2.x86_64
# systemctl restart sssd
# systemctl status sssd | grep Active
Active: active (running) since Thu 2017-09-14 16:56:17 AEST; 1s ago
# rpm -q krb5-libs sssd-krb5
krb5-libs-1.14.1-26.el7.x86_64
sssd-krb5-1.15.2-50.el7_4.2.x86_64
# systemctl restart sssd
Job for sssd.service failed because the control process exited with error code. See "systemctl status sssd.service" and "journalctl -xe" for details.
# systemctl status sssd | grep Active
Active: failed (Result: exit-code) since Thu 2017-09-14 16:57:26 AEST; 17s ago
Thank you for adding the information about that special case regarding the krb5-libs / sssd-krb5 dependency conflict, but wouldn't it be the same problem as well when upgrading the packages online via sudo yum update ?
With this information Jesus now knows that he has to download the krb5-libs package too ... thank you again ! :)
Regards,
Christian
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
