Skip to content

Commit

Permalink
Disable centos production repo, keep only development enabled.
Browse files Browse the repository at this point in the history
Just removing the repo file won't help because it would get pulled back
in on 'dnf update -i'.

The issue this patch is trying to resolve is older version of package in
developemnt CentOS repository than in the production CentOS repository.
For example for gtk package:

Error:
 Problem 1: package gtk3-devel-docs-3.24.43-2.el10.x86_64 from
crb-development requires gtk3 = 3.24.43-2.el10, but none of the
providers can be installed
  - cannot install both gtk3-3.24.43-3.el10.x86_64 from appstream and
    gtk3-3.24.43-2.el10.x86_64 from appstream-development
  - cannot install both gtk3-3.24.43-3.el10.x86_64 from appstream and
    gtk3-3.24.43-2.el10.x86_64 from appstream
  - package gtk3-devel-3.24.43-3.el10.x86_64 from appstream requires
    gtk3(x86-64) = 3.24.43-3.el10, but none of the providers can be
installed
  - cannot install the best candidate for the job
  - conflicting requests
  • Loading branch information
rvykydal committed Mar 4, 2025
1 parent 3564d2f commit afa221e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dockerfile/anaconda-rpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ LABEL [email protected]

# Add development repositories instead of the production ones
# We need development repositories to get our dependencies sooner
RUN rm -f /etc/yum.repos.d/*.repo
COPY ["anaconda-centos.repo", "/etc/yum.repos.d/"]

# The anaconda.spec.in is in the repository root. This file will be copied automatically here if
Expand All @@ -32,6 +31,7 @@ COPY ["anaconda.spec.in", "requirements.txt", "/root/"]

# Prepare environment and install build dependencies
RUN set -ex; \
dnf config-manager --disable baseos appstream crb; \
dnf update -y; \
# Install dependencies
dnf install -y \
Expand Down

0 comments on commit afa221e

Please sign in to comment.