Last Updated on January 12, 2023 by Vikash Ekka
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.
“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”.”
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.
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
[root@localhost user]# subscription-manager register --username your_userId --password your_password
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
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 |
Step5. Use DNF or YUM command to list the update repository
[root@localhost user]# dnf repolist
Step6. Now its time to check the update using yum update
[root@localhost user]# yum update
[root@localhost user]# subscription-manager repos --list
To check your enabled subscriptions, use the below command.
[root@localhost user]# subscription-manager list
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
Also Read:- How to Restart Network Services in RHEL 8