How do i register to the rhn in redhat 7?



  • In Redhat 7 use the subscription-manager It replaces the previous rhn-register, rhnreg_ks and up2date commands

    Registers systems to a subscription management service and then attaches and man‐
    ages subscriptions for software products.

    List subscriptions (repos) you are already subscribed to

    $ sudo subscription-manager list
    
    +-------------------------------------------+
        Installed Product Status
    +-------------------------------------------+
    Product Name:   Red Hat Enterprise Linux 7 Public Beta
    Product ID:     226
    Version:        7.0 Beta
    Arch:           x86_64
    Status:         Unknown
    Status Details: 
    Starts:         
    Ends:           
    
    Product Name:   Red Hat Enterprise Linux Server
    Product ID:     69
    Version:        7.2
    Arch:           x86_64
    Status:         Unknown
    Status Details: 
    Starts:         
    Ends: 
    

    A list of sub-commands you can run via subscription-manager

                  1. register
    
                  2. unregister
    
                  3. attach
    
                  4. auto-attach
    
                  5. remove
    
                  6. release
    
                  7. service-level
    
                  8. import
    
                  9. redeem
    
                  10. list
    
                  11. refresh
    
                  12. environments
    
                  13. repos
    
                  14. orgs
    
                  15. plugins
    
                  16. identity
    
                  17. facts
    
                  18. clean
    
                  19. config
              
                  20. version
    
                  21. status
    
                  22. deprecated commands: subscribe, unsubscribe, and activate
    
                  23. repo-override
    

    There is a GUI version subscription-manager-gui.

    The subscription-manager is used in conjunction with a locally installed Redhat Satellite Server, but can be used without it.

    If you have just installed a new system, the systems needs to register with the RHN before you can see and subscribe to the repos.

    To register, type the command below and press return, it will prompt for RHN password.

    # subscription-manager register --username <youruser to RHN>
    

Log in to reply
 

© Lightnetics 2024