How to subscribe the system to RHEL for SAP Channel ?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux for SAP Subscription

Issue

  • How to subscribe the system to RHEL for SAP Channel ?
  • How to register the system and subscribe to RHEL for SAP Channel ?

Resolution

  1. Register the system to Red Hat Customer Portal

    subscription-manager register --username=XXXX --password=XXXX
    
  2. Attach the Red Hat Enterprise Linux for SAP Subscription. This process involves two steps
    2.1. Find the pool id of the RHEL for SAP subscription

    subscription-manager list --available
    

    2.2. Attach the subscription to the system

    subscription-manager attach --pool=XXXX
    
  3. By default all Red Hat Enterprise Linux yum repositories available with the subscription are enabled. Review the currently enabled channels using the below command. Verify whether RHEL for SAP yum repository "rhel-sap-for-rhel-6-server-rpms/rhel-sap-for-rhel-7-server-rpms" is enabled.

    yum repolist
    

    If the RHEL for SAP repository is not enabled, then enable it using the command

    Red Hat Enterprise Linux 6 x86_64: subscription-manager repos --enable="rhel-sap-for-rhel-6-server-rpms"
    Red Hat Enterprise Linux 7 x86_64: subscription-manager repos --enable="rhel-sap-for-rhel-7-server-rpms"
    Red Hat Enterprise Linux 6 s390x : subscription-manager repos --enable="rhel-sap-for-rhel-6-for-system-z-rpms"
    Red Hat Enterprise Linux 7 s390x: subscription-manager repos --enable="rhel-sap-for-rhel-7-for-system-z-rpms"
    Red Hat Enterprise Linux 6 PPC(BE): subscription-manager repos --enable="rhel-sap-for-rhel-6-for-power-rpms"
    Red Hat Enterprise Linux 7 PPC(BE): subscription-manager repos --enable="rhel-sap-for-rhel-7-for-power-rpms"

How to enable only the required repositories ?

When registering the system, all the default yum repositories associated with a subscription is enabled. Use the below commands as a reference to enable only the required yum repositories

Disable all the enabled yum repositories and enable only the required repositories (Base repository and RHEL for SAP repository).

subscription-manager repos --disable="*"
  • For Red Hat Enterprise Linux 7 x86_64

    subscription-manager repos --enable="rhel-7-server-rpms"  --enable="rhel-sap-for-rhel-7-server-rpms"
    
  • For Red Hat Enterprise Linux 6 x86_64

    subscription-manager repos --enable="rhel-6-server-rpms" --enable="rhel-sap-for-rhel-6-server-rpms"
    

If any other yum repositories needs to be enabled, then find the repository name using the command yum repolist all and enable it using subscription-manager repos --enable=XXyum-repo-nameXX. For other architectures, replace the channel names appropriately. Use subscription-manager repos --list to find the channel names.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

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