Red Hat Training

A Red Hat training course is available for Red Hat Linux

1.3. The Basics of Registering the System and Managing Subscriptions

1.3.1. What are Red Hat Subscriptions and Which Tasks they Can Be Used for

The products installed on Red Hat Enterprise Linux 7, including the operating system itself, are covered by subscriptions.
A subscription to Red Hat Content Delivery Network is used to track:
  • Registered systems
  • Products installed on those system
  • Subscriptions attached to those product

1.3.2. Registering the System During the Installation

This section provides a brief summary of registering Red Hat Enterprise Linux 7 during the installation process. If your operating system is not registered after the installation, you can find what might have been missed during the installation by reading through this section. For detailed information, consult Red Hat Enterprise Linux 7 Installation Guide.
Basically, there are two ways to register the system during the installation:
  • Normally, registration is a part of the Initial Setup configuration process. For more information, see Red Hat Enterprise Linux 7 Installation Guide.
  • Another option is to run Subscription manager as a post-installation script, which performs the automatic registration at the moment when the installation is complete and before the system is rebooted for the first time. To ensure this, modify the %post section of the Kickstart file. For more detailed information on running Subscription manager as a post-installation script, see Red Hat Enterprise Linux 7 Installation Guide.

1.3.3. Registering the System After the Installation

If you have not registered your system during installation process, you can do it afterwards by applying the following procedure. Note that all commands in this procedure need to be performed as the root user.

Procedure 1.1. Registering and subscribing your system

  1. Register your system:
    ~]# subscription-manager register
    The command will prompt you to enter your Red Hat Customer Portal user name and password.
  2. Determine the pool ID of a subscription that you require:
    ~]# subscription-manager list --available
    This command displays all available subscriptions for your Red Hat account. For every subscription, various characteristics are displayed, including the pool ID.
  3. Attach the appropriate subscription to your system by replacing pool_id with the pool ID determined in the previous step:
    ~]# subscription-manager attach --pool=pool_id
For more information on registration of your system and attachment of the Red Hat Content Delivery Network subscriptions, see Chapter 7, Registering the System and Managing Subscriptions.