Createrepo causes module conflict on RHEL 8 reposync

Solution Verified - Updated -

Issue

  • How to manually insert module metadata into existing repodata
  • Repository mirror for RHEL8 created via createrepo_c command does not handle modules information correctly:

    # yum update
    ...
    Error:
    Problem 1: cannot install both perl-libs-4:5.24.4-404.module+el8.1.0+2926+ce7246ad.x86_64 and perl-libs-4:5.26.3-416.el8.x86_64
    - package perl-Algorithm-Diff-1.1903-10.module+el8.1.0+2926+ce7246ad.noarch requires perl(:MODULE_COMPAT_5.24.4), but none of the providers can be installed
    - cannot install the best update candidate for package perl-libs-4:5.26.3-416.el8.x86_64
    - cannot install the best update candidate for package perl-Algorithm-Diff-1.1903-9.el8.noarch
    
  • After switching to direct update from Red Hat provided repositories, then there are no errors.

Environment

  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • createrepo_c version 0.16.2-1.el8[Fixed]

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content