6.2. Enabling Supplementary and Optional Repositories

As product subscriptions are attached to systems, the associated content repositories (identified in the subscription certificate) are made available to the system. The content repositories are based on the product and on the content delivery network, defined in the baseurl parameter of the rhsm.conf file.
A subscription may include access to optional content repositories along with the default repositories. These optional repositories must be enabled before the packages in them can be installed (even if the system has the appropriate subscriptions for the products in those repositories).
  1. List all available repos for the system, including disabled repos.
    [root@server1 ~]# subscription-manager repos --list
    The optional and supplementary channels are named rhel-6-server-optional-rpms and rhel-6-server-supplementary, respectively.
  2. The repositories can be enabled using the --enable option with the repos command:
    [root@server ~]# subscription-manager repos --enable rhel-6-server-optional-rpms
Likewise, unwanted repositories can be disabled using the repos --disable command.