DNF transactions on Red Hat Enterprise Linux 8 fails with Bad id for repo error when dnf varilables are utilized in the RepoID field of Repo file.

Solution Verified - Updated -

Issue

  • When dnf variables are used in the repoid field of the repo configuration file, dnf transactions will fail with the following error:

    Bad id for repo: test-$basearch-$releasever, byte = $ 5   
    

Environment

  • Red Hat Enterprise Linux 8

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