Local rpm installation dependencies issue

Hello,

I am trying to install a few rpms on a test server without internet connection.

I have downloaded the rpm files based "yum deplist " from other server which has internet connections and has the rpm installed.

Then I copied all rpm files to the test linux server.

[root@localhost Downloads]# dnf localinstall glibc-2.34-100.0.1.el9_4.2.x86_64.rpm Error: Problem: conflicting requests

  • nothing provides glibc-common = 2.34-100.0.1.el9_4.2 needed by glibc-2.34-100.0.1.el9_4.2.x86_64 from @commandline
  • nothing provides glibc-langpack = 2.34-100.0.1.el9_4.2 needed by glibc-2.34-100.0.1.el9_4.2.x86_64 from @commandline (try to add ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use not only best candidate packages) [root@localhost Downloads]# dnf localinstall glibc-common-2.34-100.0.1.el9_4.2.x86_64.rpm Error: Problem: conflicting requests
  • nothing provides glibc = 2.34-100.0.1.el9_4.2 needed by glibc-common-2.34-100.0.1.el9_4.2.x86_64 from @commandline (try to add ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use not only best candidate packages) [root@localhost Downloads]#

so I install glibc-2.34-100.0.1.el9_4.2, it asks for glibc-common = 2.34-100.0.1.el9_4.2, when I install glibc-common = 2.34-100.0.1.el9_4.2, it asks for 2.34-100.0.1.el9_4.2…

[root@localhost Downloads]# rpm -i glibc-2.34-100.0.1.el9_4.2.x86_64.rpm warning: glibc-2.34-100.0.1.el9_4.2.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 8d8b756f: NOKEY error: Failed dependencies: glibc-common = 2.34-100.0.1.el9_4.2 is needed by glibc-2.34-100.0.1.el9_4.2.x86_64 glibc-langpack = 2.34-100.0.1.el9_4.2 is needed by glibc-2.34-100.0.1.el9_4.2.x86_64 [root@localhost Downloads]#

[root@localhost Downloads]# rpm -i glibc-common-2.34-100.0.1.el9_4.2.x86_64.rpm warning: glibc-common-2.34-100.0.1.el9_4.2.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 8d8b756f: NOKEY error: Failed dependencies: glibc = 2.34-100.0.1.el9_4.2 is needed by glibc-common-2.34-100.0.1.el9_4.2.x86_64 [root@localhost Downloads]#

[root@localhost Downloads]# dnf localinstall .rpm --disablerepo= No repository match: * Package audit-3.1.2-2.el9.x86_64 is already installed. Package basesystem-11-13.el9.noarch is already installed. Package bash-5.1.8-9.el9.x86_64 is already installed. Package libgcc-11.4.1-3.0.1.el9.i686 is already installed. Package libmnl-1.0.4-15.el9.x86_64 is already installed. Package libnfnetlink-1.0.1-21.el9.x86_64 is already installed. Package pcre-8.44-3.el9.3.x86_64 is already installed. Package policycoreutils-3.6-2.1.el9.x86_64 is already installed. Error: Problem 1: conflicting requests

  • nothing provides selinux-policy-any = 38.1.35-2.0.3.el9_4.2 needed by selinux-policy-38.1.35-2.0.3.el9_4.2.noarch from @commandline Problem 2: cannot install both glibc-2.34-100.0.1.el9_4.2.x86_64 from @commandline and glibc-2.34-100.0.1.el9.x86_64 from @System
  • package glibc-gconv-extra-2.34-100.0.1.el9.x86_64 from @System requires glibc(x86-64) = 2.34-100.0.1.el9, but none of the providers can be installed
  • conflicting requests
  • problem with installed package glibc-gconv-extra-2.34-100.0.1.el9.x86_64 Problem 3: cannot install both glibc-common-2.34-100.0.1.el9_4.2.x86_64 from @commandline and glibc-common-2.34-100.0.1.el9.x86_64 from @System
  • package glibc-langpack-en-2.34-100.0.1.el9.x86_64 from @System requires glibc-common = 2.34-100.0.1.el9, but none of the providers can be installed
  • conflicting requests
  • problem with installed package glibc-langpack-en-2.34-100.0.1.el9.x86_64 (try to add ‘–allowerasing’ to command line to replace conflicting packages or ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use not only best candidate packages) [root@localhost Downloads]#

Any ideas on how to resolve it? thanks

You need to install selinux-policy-targeted together with selinux-policy

Thanks Peter! selinux* is installed now!

[root@localhost Downloads]# dnf localinstall selinux-policy-*
Dependencies resolved.

Package Architecture Version Repository Size

Upgrading:
selinux-policy noarch 38.1.35-2.0.3.el9_4.2 @commandline 55 k
selinux-policy-targeted noarch 38.1.35-2.0.3.el9_4.2 @commandline 7.8 M

Transaction Summary

Upgrade 2 Packages

Total size: 7.9 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Running scriptlet: selinux-policy-targeted-38.1.35-2.0.3.el9_4.2.noarch 1/1
Preparing : 1/1
Upgrading : selinux-policy-38.1.35-2.0.3.el9_4.2.noarch 1/4
Running scriptlet: selinux-policy-38.1.35-2.0.3.el9_4.2.noarch 1/4
Running scriptlet: selinux-policy-targeted-38.1.35-2.0.3.el9_4.2.noarch 2/4
Upgrading : selinux-policy-targeted-38.1.35-2.0.3.el9_4.2.noarch 2/4
Running scriptlet: selinux-policy-targeted-38.1.35-2.0.3.el9_4.2.noarch 2/4
Running scriptlet: selinux-policy-38.1.35-2.0.1.el9_4.noarch 3/4
Cleanup : selinux-policy-38.1.35-2.0.1.el9_4.noarch 3/4
Running scriptlet: selinux-policy-38.1.35-2.0.1.el9_4.noarch 3/4
Cleanup : selinux-policy-targeted-38.1.35-2.0.1.el9_4.noarch 4/4
Running scriptlet: selinux-policy-targeted-38.1.35-2.0.1.el9_4.noarch 4/4
Running scriptlet: selinux-policy-targeted-38.1.35-2.0.3.el9_4.2.noarch 4/4
Running scriptlet: selinux-policy-targeted-38.1.35-2.0.1.el9_4.noarch 4/4
Verifying : selinux-policy-38.1.35-2.0.3.el9_4.2.noarch 1/4
Verifying : selinux-policy-38.1.35-2.0.1.el9_4.noarch 2/4
Verifying : selinux-policy-targeted-38.1.35-2.0.3.el9_4.2.noarch 3/4
Verifying : selinux-policy-targeted-38.1.35-2.0.1.el9_4.noarch 4/4

Upgraded:
selinux-policy-38.1.35-2.0.3.el9_4.2.noarch selinux-policy-targeted-38.1.35-2.0.3.el9_4.2.noarch

Complete!

From Ask Fedora to CentOS

Added centos and removed rpm, selinux, server

Off the cuff, I assume you are using CentOS and not Fedora, so I have moved this topic to the centos category.

Let me know if that is wrong.

1 Like

it is right.

CentOS should not have packages tagged as el9_4 or el9_4.2.
Looks like you are mixing something of the Alma/Oracle/Rocky repos.

1 Like

Thanks Vladislav.

Yes it is Oracle Linux, I thought it is equivalent to CentOS.

I managed to resolve the issue by using rpm -i [rpm file[s]]

Oracle Linux is decidedly NOT the same as CentOS Stream.

Oracle Linux, Alma Linux, and Rocky Linux are downstream rebuilds of released RHEL source code. They are positioned after RHEL in a timeline. How long after RHEL release depends on how fast those Devs check, download, build and release the code.

CentOS Stream, on the other hand, is what is in development by Red Hat right now to become the next point release of RHEL. That means what is currently released NOW in CentOS Stream will be what the Oracle, Alma, and Rocky guys build in “x” months when the next point release of RHEL happens.

You absolutely can not mix CentOS Stream repositories with downstream looking distributions.