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"." 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
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
[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
[root@localhost user]# yum update
How to List all the available repository in your account.
[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
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
Also Read:- How to Restart Network Services in RHEL 8
Comments
Post a Comment