Difference between revisions of "Red Hat 7 registration"
Line 24: | Line 24: | ||
'''Repos stuff''' <br> | '''Repos stuff''' <br> | ||
− | subscription-manager repos --enable=rhel-7-server-optional-rpms<br> | + | $ subscription-manager repos --enable=rhel-7-server-optional-rpms<br> |
− | yum repolist<br> | + | $ yum repolist<br> |
Revision as of 09:51, 20 April 2016
Reference - https://access.redhat.com/solutions/253273
Register and automatically subscribe in one step
Use the following command to register the system, then automatically associate any available subscription matching that system:
$ subscription-manager register --username <username> --password <password> --auto-attach
Attach a specific subscription through the Customer Portal
After registration, you can to assign a subscription to the registered system from the Customer Portal by referring this article.
After this, refresh the information on your machine using the following command. Be sure to run this any time you add or change the attached subscription from the Customer Portal:
$ subscription-manager refresh
System Administration guide:
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/chap-Subscription_and_Support-Registering_a_System_and_Managing_Subscriptions.html
Get information
$ subscription-manager identity
Removing subscription
$ subscription-manager remove --all
$ subscription-manager unregister
$ subscription-manager clean
Repos stuff
$ subscription-manager repos --enable=rhel-7-server-optional-rpms
$ yum repolist