Skip to content

rpm/rhel-10: let dnf downgrade the packages of the ubi image - #1368

Open
ndeloof wants to merge 1 commit into
docker:masterfrom
ndeloof:rhel10-dnf-allowerasing
Open

ndeloof wants to merge 1 commit into
docker:masterfrom
ndeloof:rhel10-dnf-allowerasing

Conversation

@ndeloof

@ndeloof ndeloof commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

- What I did

The rhel-10 build of the RPM packages fails at dnf install rpm-build since the ubi10 image ships rpm-4.19.1.1-25.el10 while the ubi 10 repositories still serve -23:

Problem: cannot install both rpm-4.19.1.1-23.el10.aarch64 from ubi-10-for-aarch64-baseos-rpms and rpm-4.19.1.1-25.el10.aarch64 from @System

rpm-build requires the exact version of rpm of its repository, so dnf has to downgrade it. The command is now run with --allowerasing; I ran it in ubi10/ubi (arm64), where it succeeds. Same change as docker/packaging, which builds the packages of Compose and the other plugins.

- Description for the changelog

Fix the build of the RHEL 10 packages when the ubi10 image is ahead of its repositories

🤖 Generated with Claude Code

The rhel-10 build fails at `dnf install rpm-build` since the ubi10 image
ships rpm 4.19.1.1-25 while the ubi 10 repositories still serve -23:

    cannot install both rpm-4.19.1.1-23.el10 from ubi-10-for-aarch64-baseos-rpms
    and rpm-4.19.1.1-25.el10 from @System

rpm-build requires the exact version of rpm of its repository, so dnf has to
downgrade rpm and its dependent packages. Pass --allowerasing to let it do so.

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant