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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.