Header

How to Register and Enable Red Hat Subscription, Repositories and Updates for RHEL 8.4 Server

How to Register and Enable Red Hat Subscription, Repositories and Updates for RHEL 8.4 Server
How to Register and Enable Red Hat Subscription, Repositories and Updates for RHEL 8.4 Server


Hey guys, In this tutorial post, After installation of 
Red Hat Linux 8.x, we will need to subscribe to the system with Red Hat Subscription Management (RHSM) to get updates, support, bug fixes, etc.


A subscription service has the function to recognize registered systems with the products installed on them. Without a subscription, you are not allowed to get an update, supports, and install repositories. If you want to update or install a package that is not associated with DNF or YUM command. You may get the bellow messages.

"This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Error: There are no enabled repositories in "/etc/yum.repos.d", "/etc/yum/repos.d", "/etc/distro.repos.d"." 

This system is not registered to Red Hat Subscription Management

Local Subscription Manager service tracks down the installed software products or packages, available and used subscriptions, and interacts with the Red Hat Customer Portal through tools like YUM.


To fix this issue first we have to create a Subscription account on Red Hat, and it's free to create. Here we are using the Red Hat subscription-manager to manage your subscriptions and repository through the terminal.


Click here to Register your account on REHL


Prerequisites

  • sudo user

  • Internet connection

  • firewall access for subscription.rhsm.redhat.com on port 443

  • Red Hat Active Subscription User Id and Password




Register and Enable Red Hat Subscription, Repositories, and Updates for RHEL 8.4 Server

Step1. Press Ctrl + Alt + T to open the terminal on the screen.

Step2. To register with a Red Hat subscription, use the following command to                        connect with the Red Hat Subscription.


[root@localhost user]#  subscription-manager register --username your_userId --password your_password
How to Register and Enable Red Hat Subscription


NOTE: After the system is successfully authenticated an ID will be generated on                     your system.


Step3. Below command will list the available subscription where you will get a                         Pool   ID at the bottom or middle of outputs.


[root@localhost user]#  subscription-manager list --available

How to Register and Enable Red Hat Subscription, Repositories

Step4. Now Activate a subscription using Subscription Pool ID

[root@localhost user]#  subscription-manager subscribe --pool=Pool_ID number
Enable Red Hat Subscription, Repositories and Updates for RHEL 8.4 Server
Enable Red Hat Subscription, Repositories and Updates for RHEL 8.4 Server

Step5. Use DNF or YUM command to list the update repository

[root@localhost user]#  dnf repolist
Register and Enable Red Hat Subscription, Repositories


Step6. Now its time to check the update using yum update

[root@localhost user]#  yum update

How to Register and Enable Red Hat Subscription,





How to List all the available repository in your account.

[root@localhost user]#  subscription-manager repos --list
Enable Red Hat Subscription, Repositories and Updates for RHEL 8.4 Server

To check your enabled subscriptions, use the below command.

[root@localhost user]#  subscription-manager list
subscription-manager list - REHL


How to Unregister  or remove activation from Red Hat Subscription Management (RHSM) 

[root@localhost user]#  subscription-manager remove --pool=Pool_ID
[root@localhost user]#  subscription-manager unregister
[root@localhost user]#  subscription-manager clean

Conclusion

We have successfully enabled and disable the  Red Hat Subscription, Repositories, and Updates for RHEL 8.4 Server. Now we know why this error was coming. Now you will be able to update all important repositories and security patches. 

Please Lets us know if you are facing any kind of issue while doing the above steps on the below comment box, we will happy to answer you.

Also Read:- How to Restart Network Services in RHEL 8

Post a Comment

0 Comments