How do I subscribe to a channel in Certificate-based Subscription Management?

Updated

Issue

  • How do I apply a channel to my system in Red Hat Subscription Management?
  • Why can't I find channels in Red Hat Subscription Management?

Environment

  • Certificate-based Red Hat Subscription Management

Resolution

Certificate-based Subscription Management allows you to manage your systems at the subscription level. In RHN Classic, this was accomplished at the channel-level. In the new system, channels are no longer used. To manage subscriptions using certificates, enable repositories in your system:

Enabled repositories can be viewed by the following command:

# yum repolist

While all repositories can be viewed by the following command:

# subscription-manager repos --list

Using subscription-manager

The command subscription-manager repos --enable/disable can be used to enable a repository:

# subscription-manager repos --enable <channel_id>

For RHEL6:

# subscription-manager repos --enable     rhel-6-server-optional-rpms

For RHEL7:

# subscription-manager repos --enable rhel-7-server-optional-rpms

Using yum-config-manager

The yum-config-manager command is provided by the yum-utils package RPM on RHEL6. It is not available on RHEL5.

You can enable repositories by running the following command:

# yum-config-manager --enable <channel_id>

For example:

# yum-config-manager --enable rhel-6-server-optional-rpms

Using yum --enablerepo

You can temporarily enable the channel, as well:

# yum --enablerepo=rhel-6-server-optional-rpms install <package name>

This does not permanently enable the channel in the redhat.repo.

Category
Article Type