Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to Register and Enable Red Hat Subscription, Repositories, Patching


Register and automatically subscribe in one step
          # subscription-manager register --username --password --auto-attach
Assign the system to an organization 

          # subscription-manager register --org= --activationkey=

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=

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




This post first appeared on AdminCool, please read the originial post: here

Share the post

How to Register and Enable Red Hat Subscription, Repositories, Patching

×

Subscribe to Admincool

Get updates delivered right to your inbox!

Thank you for your subscription

×