I am new to Linux (CentOS to be specific) so I probably miss something basic. I need to install openssl to compile some program so I used
sudo yum install openssl-devel
I get the output
---> Package openssl-devel.x86_64 1:1.0.2k-8.el7 will be installed
...
--> Finished Dependency Resolution
Error: Package: libselinux-devel-2.5-11.el7.x86_64 (C7.4.1708-base)
Requires: libselinux(x86-64) = 2.5-11.el7
Installed: libselinux-2.5-12.el7.x86_64 (@localrepo)
libselinux(x86-64) = 2.5-12.el7
Available: libselinux-2.2.2-6.el7.x86_64 (C7.0.1406-base)
libselinux(x86-64) = 2.2.2-6.el7
Available: libselinux-2.5-6.el7.x86_64 (C7.3.1611-base)
libselinux(x86-64) = 2.5-6.el7
Available: libselinux-2.5-11.el7.x86_64 (C7.4.1708-base)
libselinux(x86-64) = 2.5-11.el7
Error: Package: krb5-devel-1.15.1-8.el7.x86_64 (C7.4.1708-base)
Requires: krb5-libs(x86-64) = 1.15.1-8.el7
...
If I read this correctly, the openssl package depends on libselinux-devel-2.5-11.el7.x86_64 and that requires libselinux(x86-64) = 2.5-11.el7. However, I only have different versions available like libselinux-2.5-12.el7.x86_64, etc.
I believe that Linux is supposed to download all dependencies automatically. If so, why did this not work in this case and how can I fix it. If it doesn't download dependencies automatically then how would I go after installing specific versions of a package, i.e. what does the command look like?
sudo yum install openssl-devel
I get the output
---> Package openssl-devel.x86_64 1:1.0.2k-8.el7 will be installed
...
--> Finished Dependency Resolution
Error: Package: libselinux-devel-2.5-11.el7.x86_64 (C7.4.1708-base)
Requires: libselinux(x86-64) = 2.5-11.el7
Installed: libselinux-2.5-12.el7.x86_64 (@localrepo)
libselinux(x86-64) = 2.5-12.el7
Available: libselinux-2.2.2-6.el7.x86_64 (C7.0.1406-base)
libselinux(x86-64) = 2.2.2-6.el7
Available: libselinux-2.5-6.el7.x86_64 (C7.3.1611-base)
libselinux(x86-64) = 2.5-6.el7
Available: libselinux-2.5-11.el7.x86_64 (C7.4.1708-base)
libselinux(x86-64) = 2.5-11.el7
Error: Package: krb5-devel-1.15.1-8.el7.x86_64 (C7.4.1708-base)
Requires: krb5-libs(x86-64) = 1.15.1-8.el7
...
If I read this correctly, the openssl package depends on libselinux-devel-2.5-11.el7.x86_64 and that requires libselinux(x86-64) = 2.5-11.el7. However, I only have different versions available like libselinux-2.5-12.el7.x86_64, etc.
I believe that Linux is supposed to download all dependencies automatically. If so, why did this not work in this case and how can I fix it. If it doesn't download dependencies automatically then how would I go after installing specific versions of a package, i.e. what does the command look like?