How to override yum repository option using subscription-manager?

Solution Verified - Updated -

Issue

  • How to override yum repository option using subscription-manager?

For example:
1. How to change the gpgcheck value in /etc/yum.repos.d/redhat.repo using subscription-manager?
2. How to change the metadata_expire value in /etc/yum.repos.d/redhat.repo using subscription-manager ?

Environment

  • Red Hat Enterprise Linux 5.7 and above

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