How to Register and Enable Red Hat Subscription, Repositories, Patching
Register and automatically subscribe in one step
           # subscription-manager register --username <username> --password <password> --auto-attach
Assign the system to an organization 
           # subscription-manager register --org=<org id> --activationkey=<key>  
To get a list of all your available subscriptions 
           # subscription-manager list -available
List all available repos for the system
           # subscription-manager repos --list
Enable subscription-manager Repositories
           # subscription-manager repos --enable rhel-7-server-optional-rpms
To get consumed subscription and its serial number
           # subscription-manager list --consumed
To remove selected subscription
           # subscription-manager remove --serial=<serial_number_obtained from previous step>
To remove all subscriptions
           # subscription-manager remove --all
To unregister a system registered with a Red Hat Subscription Management server
           # subscription-manager unregister
           # subscription-manager clean
To completely update system
           # yum update
To update security patches only
           # yum update --security --exclude=kernel*
To check Red Hat Release and kernel version
           # cat /etc/redhat-release
           # rpm -q kernel --last
           # uname -a

No comments: