Register and subscribe Red Hat 7.3 Packages

This article discribes how to register your Red Hat system to Red Hat subscription manager, enable some repositories and verify it. In this article I am using Red Hat Enterprise Linux 7.3 on virtual environment. You can acquire account for this subscription process on Red Hat portal as a Red Hat developer.

Now login to your system and check your subcriptions status. At this point you will see your system is not registered to any Red Hat subscription packages.

   root:redhat.mylab.com in /root
😃  ➤ yum repolist
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
repolist: 0

Register your system to Red Hat subscription management. Use the following command followed by the credential you acquired from the developer portal.

   root:redhat.mylab.com in /root
😃  ➤ subscription-manager register --username=mymail@email.com --password=mypassword
Registering to: subscription.rhsm.redhat.com:443/subscription
The system has been registered with ID: abcdefg-hijkl-mnop-bf16-cfa2dfcebbb4

Once you were registered to the subscription management, you may see the available subscription you may use on your system. Use the following command.

   root:redhat.mylab.com in /root
😃  ➤ subscription-manager list --available
+-------------------------------------------+
    Available Subscriptions
+-------------------------------------------+
Subscription Name:   Red Hat Enterprise Linux Developer Suite
Provides:            Red Hat Software Collections (for RHEL Server)
                     Red Hat Container Development Kit
                     MRG Realtime
                     Red Hat EUCJP Support (for RHEL Server) - Extended Update Support
                     Red Hat Enterprise Linux Server - Extended Update Support
                     Red Hat Beta
                     Oracle Java (for RHEL Server) - Extended Update Support
                     Red Hat Enterprise Linux High Performance Networking (for RHEL Compute Node)
                     dotNET on RHEL Beta (for RHEL Server)
                     Red Hat Enterprise Linux High Performance Networking (for RHEL Server) - Extended Update
                     Support
                     Red Hat Enterprise Linux Resilient Storage (for RHEL Server)
                     Oracle Java (for RHEL Server)
                     Red Hat Container Images
                     Red Hat Enterprise Linux for Real Time
                     dotNET on RHEL (for RHEL Server)
                     Red Hat Enterprise Linux Atomic Host
                     Red Hat S-JIS Support (for RHEL Server) - Extended Update Support
                     Red Hat Enterprise Linux Scalable File System (for RHEL Server)
                     Red Hat Enterprise Linux Resilient Storage (for RHEL Server) - Extended Update Support
                     Red Hat Enterprise Linux Atomic Host Beta
                     Red Hat Enterprise Linux High Availability (for RHEL Server) - Extended Update Support
                     Red Hat Container Images Beta
                     Red Hat Enterprise Linux Scalable File System (for RHEL Server) - Extended Update Support
                     Red Hat Enterprise Linux Load Balancer (for RHEL Server) - Extended Update Support
                     Red Hat Enterprise Linux Server
                     Red Hat Enterprise Linux High Availability (for RHEL Server)
                     Red Hat Software Collections Beta (for RHEL Server)
                     Red Hat Enterprise Linux Load Balancer (for RHEL Server)
                     Red Hat Enterprise Linux High Performance Networking (for RHEL Server)
                     Red Hat Developer Toolset (for RHEL Server)
SKU:                 RH2262474
Contract:            11293058
Pool ID:             8a85f9815af00aed015af02fffbe5bb4
Provides Management: Yes
Available:           100
Suggested:           1
Service Level:       Self-Support
Service Type:        L1-L3
Subscription Type:   Standard
Ends:                03/21/2018
System Type:         Virtual

Type yum repolist to check if we run a registered system. At this point, you may see your system is registered but is not receiving any updates. It is because you are not subcribe to any subscription package list.

   root:redhat.mylab.com in /root
😃  ➤ yum repolist
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions.
repolist: 0

Enable subscription on your system use the following command followed by the pool ID from the subscription list.

   root:redhat.mylab.com in /root
😃  ➤ subscription-manager subscribe --pool=8a85f9815af00aed02846f7sffbe5bb4
Successfully attached a subscription for: Red Hat Enterprise Linux Developer Suite

To check your enabled subscription briefly, you may use the following command.

   root:redhat.mylab.com in /root
😃  ➤ subscription-manager list

+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Red Hat Enterprise Linux Server
Product ID:     69
Version:        7.3
Arch:           x86_64
Status:         Subscribed
Status Details: 
Starts:         03/21/2017
Ends:           03/21/2018

To check detail information on your enabled subscription, use the following command.

   root:redhat.mylab.com in /root
😃  ➤ subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name:   Red Hat Enterprise Linux Developer Suite
Provides:            Red Hat Enterprise Linux High Performance Networking (for RHEL Server) - Extended Update
                     Support
                     Oracle Java (for RHEL Server)
                     Red Hat EUCJP Support (for RHEL Server) - Extended Update Support
                     dotNET on RHEL Beta (for RHEL Server)
                     Red Hat Beta
                     Red Hat Enterprise Linux Resilient Storage (for RHEL Server)
                     MRG Realtime
                     Red Hat Developer Toolset (for RHEL Server)
                     Red Hat Enterprise Linux Atomic Host Beta
                     Red Hat Enterprise Linux Scalable File System (for RHEL Server) - Extended Update Support
                     Red Hat Enterprise Linux for Real Time
                     Red Hat Enterprise Linux Load Balancer (for RHEL Server)
                     Red Hat Container Images Beta
                     Red Hat Enterprise Linux High Availability (for RHEL Server)
                     Red Hat Container Development Kit
                     Red Hat Enterprise Linux High Performance Networking (for RHEL Compute Node)
                     Red Hat Enterprise Linux Server - Extended Update Support
                     Red Hat Enterprise Linux Server
                     Red Hat Enterprise Linux Atomic Host
                     Red Hat Enterprise Linux Resilient Storage (for RHEL Server) - Extended Update Support
                     Oracle Java (for RHEL Server) - Extended Update Support
                     Red Hat Software Collections (for RHEL Server)
                     dotNET on RHEL (for RHEL Server)
                     Red Hat Enterprise Linux High Availability (for RHEL Server) - Extended Update Support
                     Red Hat Enterprise Linux Load Balancer (for RHEL Server) - Extended Update Support
                     Red Hat Software Collections Beta (for RHEL Server)
                     Red Hat Enterprise Linux Scalable File System (for RHEL Server)
                     Red Hat Container Images
                     Red Hat S-JIS Support (for RHEL Server) - Extended Update Support
                     Red Hat Enterprise Linux High Performance Networking (for RHEL Server)
SKU:                 RH2262474
Contract:            11293058
Account:             5920534
Serial:              7701382153394857656
Pool ID:             8a85f9815af00aed02846f7sffbe5bb4
Provides Management: Yes
Active:              True
Quantity Used:       1
Service Level:       Self-Support
Service Type:        L1-L3
Status Details:      Subscription is current
Subscription Type:   Standard
Starts:              03/21/2017
Ends:                03/21/2018
System Type:         Virtual

Type yum repolist to confirm that now we have some repositories source for the system.

   root:redhat.mylab.com in /root
😃  ➤ yum repolist
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
repo id                                        repo name                                                    status
!rhel-7-server-rpms/7Server/x86_64             Red Hat Enterprise Linux 7 Server (RPMs)                     14,050
!rhel-7-server-rt-beta-rpms/x86_64             Red Hat Enterprise Linux for Real Time Beta (RHEL 7 Server)      15
!rhel-7-server-rt-rpms/7Server/x86_64          Red Hat Enterprise Linux for Real Time (RHEL 7 Server) (RPMs    185
!rhel-ha-for-rhel-7-server-rpms/7Server/x86_64 Red Hat Enterprise Linux High Availability (for RHEL 7 Serve    291
!rhel-rs-for-rhel-7-server-rpms/7Server/x86_64 Red Hat Enterprise Linux Resilient Storage (for RHEL 7 Serve    359
repolist: 14,900

Type yum repolist all to see all repository avalilable on this subscription.

   root:redhat.mylab.com in /root
😃  ➤ yum repolist all
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
repo id                                                             repo name                      status
rh-gluster-3-client-for-rhel-7-server-debug-rpms/7Server/x86_64     Red Hat Storage Native Client  disabled
...............
!rhel-7-server-rpms/7Server/x86_64                                  Red Hat Enterprise Linux 7 Ser enabled: 14,050
...............
!rhel-7-server-rt-beta-rpms/x86_64                                  Red Hat Enterprise Linux for R enabled:     15
...............
!rhel-7-server-rt-rpms/7Server/x86_64                               Red Hat Enterprise Linux for R enabled:    185
...............
!rhel-ha-for-rhel-7-server-rpms/7Server/x86_64                      Red Hat Enterprise Linux High  enabled:    291
...............
!rhel-rs-for-rhel-7-server-rpms/7Server/x86_64                      Red Hat Enterprise Linux Resil enabled:    359
...............
repolist: 14,900

You may enable or disable spesific repository with the following command. Enable or disable the repo from the available repository list.

   root:redhat.mylab.com in /root
😃  ➤ subscription-manager repos --disable=rhel-ha-for-rhel-7-server-rpms
Repository 'rhel-ha-for-rhel-7-server-rpms' is disabled for this system.

   root:redhat.mylab.com in /root
😃  ➤ subscription-manager repos --enable=rhel-7-server-extras-rpms
Repository 'rhel-7-server-extras-rpms' is enabled for this system.

You may use command yum repolist to refresh the repository lists that we are using.

   root:redhat.mylab.com in /root
😃  ➤ yum repolist
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
repo id                                repo name                                                            status
!rhel-7-server-extras-rpms/x86_64      Red Hat Enterprise Linux 7 Server - Extras (RPMs)                       432
!rhel-7-server-rpms/7Server/x86_64     Red Hat Enterprise Linux 7 Server (RPMs)                             14,050
!rhel-7-server-rt-beta-rpms/x86_64     Red Hat Enterprise Linux for Real Time Beta (RHEL 7 Server) (RPMs)       15
!rhel-7-server-rt-rpms/7Server/x86_64  Red Hat Enterprise Linux for Real Time (RHEL 7 Server) (RPMs)           185
repolist: 14,682

Once all set, you may need to update your system to receive latest update for each package from Red Hat Subscription Management.

    root:redhat.mylab.com in /root
😃  ➤ yum update
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
rhel-7-server-extras-rpms                                                               | 3.4 kB  00:00:00     
rhel-7-server-rpms                                                                      | 3.5 kB  00:00:00     
rhel-7-server-rt-beta-rpms                                                              | 4.0 kB  00:00:00     
rhel-7-server-rt-rpms                                                                   | 4.0 kB  00:00:00     
Resolving Dependencies
--> Running transaction check
---> Package openjpeg-libs.x86_64 0:1.5.1-10.el7 will be updated
---> Package openjpeg-libs.x86_64 0:1.5.1-16.el7_3 will be an update
---> Package tzdata.noarch 0:2017a-1.el7 will be updated
---> Package tzdata.noarch 0:2017b-1.el7 will be an update
---> Package tzdata-java.noarch 0:2017a-1.el7 will be updated
---> Package tzdata-java.noarch 0:2017b-1.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved



============================================================================================================

 Package               Arch                Version                     Repository                       Size


============================================================================================================

Updating:
 openjpeg-libs         x86_64              1.5.1-16.el7_3              rhel-7-server-rpms               86 k
 tzdata                noarch              2017b-1.el7                 rhel-7-server-rpms              443 k
 tzdata-java           noarch              2017b-1.el7                 rhel-7-server-rpms              182 k

Transaction Summary


============================================================================================================

Upgrade  3 Packages

Total download size: 711 k
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for rhel-7-server-rpms
(1/3): openjpeg-libs-1.5.1-16.el7_3.x86_64.rpm                                          |  86 kB  00:00:01     
(2/3): tzdata-java-2017b-1.el7.noarch.rpm                                               | 182 kB  00:00:01     
(3/3): tzdata-2017b-1.el7.noarch.rpm                                                    | 443 kB  00:00:03     


-----------------------------------------------------------------------------------------------------------

Total                                                                          183 kB/s | 711 kB  00:00:03     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Updating   : tzdata-2017b-1.el7.noarch                                                               1/6 
  Updating   : tzdata-java-2017b-1.el7.noarch                                                          2/6 
  Updating   : openjpeg-libs-1.5.1-16.el7_3.x86_64                                                     3/6 
  Cleanup    : tzdata-2017a-1.el7.noarch                                                               4/6 
  Cleanup    : tzdata-java-2017a-1.el7.noarch                                                          5/6 
  Cleanup    : openjpeg-libs-1.5.1-10.el7.x86_64                                                       6/6 
rhel-7-server-extras-rpms/x86_64/productid                                              | 2.1 kB  00:00:00     
rhel-7-server-rpms/7Server/x86_64/productid                                             | 2.1 kB  00:00:00     
rhel-7-server-rt-beta-rpms/x86_64/productid                                             | 2.1 kB  00:00:00     
rhel-7-server-rt-rpms/7Server/x86_64/productid                                          | 2.1 kB  00:00:00     
  Verifying  : openjpeg-libs-1.5.1-16.el7_3.x86_64                                                     1/6 
  Verifying  : tzdata-java-2017b-1.el7.noarch                                                          2/6 
  Verifying  : tzdata-2017b-1.el7.noarch                                                               3/6 
  Verifying  : tzdata-java-2017a-1.el7.noarch                                                          4/6 
  Verifying  : openjpeg-libs-1.5.1-10.el7.x86_64                                                       5/6 
  Verifying  : tzdata-2017a-1.el7.noarch                                                               6/6 

Updated:
  openjpeg-libs.x86_64 0:1.5.1-16.el7_3     tzdata.noarch 0:2017b-1.el7     tzdata-java.noarch 0:2017b-1.el7    

Complete!



Contributor:

Ananto Yudi Hendrawan
Network Engineer - CCIE Service Provider #38962, RHCE, VCP6-DCV
nantoyudi@gmail.com
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s