• 평소 사용할 일이 없었던 Redhat linux, 개인 개발자용(Red Hat Developer Subscription for Individuals)으로 redhat.repo 활성화를 진행하며 남깁니다.
  • Redhat Enterprise linux를 로컬 yum.repo 구성으로 적용해 가능한지 테스트하다 일단 막혀서… 이 내용은 ubuntu, centos 도 진행해보며 정리할 예정입니다. (Update: Mar 24, 2021)

환경 구성

  • OS: RHEL 7.9
  • License: Red Hat Developer Subscription for Individuals

1. Subscription 계정 생성

2. Subscription 활성화

  • RHEL 7.9 OS가 설치되어 있는 상태에서 진행

    [USER1@TESTSVR1 ~]$ yum repolist
    Loaded plugins: product-id, search-disabled-repos, subscription-manager
    
    This system is not registered with an entitlement server. You can use subscription-manager to register.
    
    repolist: 0
    
    
    [USER1@TESTSVR1 ~]$ sudo subscription-manager register
    Registering to: subscription.rhsm.redhat.com:443/subscription
    Username: USER1
    Password: 
    The system has been registered with ID: 22c847f8-748a-3ba2-715e-a2303bac20e1
    The registered system name is: TESTSVR1
    
    # 또는 subscription-manager register --username {사용자계정} --password {사용자암호}
    # 등록 제거 - subscription-manager unregister
    
    [USER1@TESTSVR1 ~]$ sudo subscription-manager list --available
    +-------------------------------------------+
        Available Subscriptions
    +-------------------------------------------+
    Subscription Name:   Red Hat Developer Subscription for Individuals
    Provides:            dotNET on RHEL Beta (for RHEL Server)
                         Red Hat CodeReady Linux Builder for x86_64
                         Red Hat Enterprise Linux for SAP HANA for x86_64
                         Red Hat Ansible Engine
                         RHEL for SAP HANA - Update Services for SAP    Solutions
                         Red Hat Enterprise Linux Scalable File System    (for RHEL Server) - Extended Update Support
                         RHEL for SAP HANA - Extended Update Support
                         Red Hat Container Images Beta
                         Red Hat Ansible Automation Platform
                         Red Hat Enterprise Linux Atomic Host Beta
                         Red Hat Container Images
                         Red Hat Enterprise Linux Load Balancer (for RHEL    Server)
                         Red Hat Container Development Kit
                         Red Hat Beta
                         Red Hat EUCJP Support (for RHEL Server) -    Extended Update Support
                         RHEL for SAP (for IBM Power LE) - Update    Services for SAP Solutions
                         Red Hat Enterprise Linux High Availability for    x86_64
                         MRG Realtime
                         Red Hat Enterprise Linux Load Balancer (for RHEL    Server) - Extended Update Support
                         dotNET on RHEL (for RHEL Server)
                         Red Hat CodeReady Linux Builder for x86_64 -    Extended Update Support
                         Red Hat Enterprise Linux High Availability -    Update Services for SAP Solutions
                         Red Hat Enterprise Linux Resilient Storage for    x86_64 - Extended Update Support
                         Red Hat Enterprise Linux High Availability for    x86_64 - Extended Update Support
                         Oracle Java (for RHEL Server)
                         Red Hat Enterprise Linux Resilient Storage for    x86_64
                         Red Hat Enterprise Linux Server - Update    Services for SAP Solutions
                         Red Hat Software Collections (for RHEL Server)
                         Red Hat Enterprise Linux for ARM 64
                         Red Hat Enterprise Linux High Performance    Networking (for RHEL Server)
                         Red Hat Enterprise Linux Scalable File System    (for RHEL Server)
                         Red Hat Enterprise Linux for Real Time
                         Red Hat Enterprise Linux High Performance    Networking (for RHEL Server) - Extended Update    Support
                         RHEL for SAP - Update Services for SAP Solutions
                         Oracle Java (for RHEL Server) - Extended Update    Support
                         Red Hat Enterprise Linux Atomic Host
                         Red Hat CodeReady Linux Builder for ARM 64
                         Red Hat Developer Tools (for RHEL Server)
                         Red Hat Software Collections Beta (for RHEL    Server)
                         Red Hat Enterprise Linux Server
                         Red Hat Enterprise Linux for SAP Applications    for x86_64
                         Red Hat Developer Tools Beta (for RHEL Server)
                         Red Hat Enterprise Linux for x86_64
                         Red Hat Enterprise Linux for x86_64 - Extended    Update Support
                         RHEL for SAP - Extended Update Support
                         Red Hat Developer Toolset (for RHEL Server)
                         Red Hat Enterprise Linux High Performance    Networking (for RHEL Compute Node)
                         Red Hat S-JIS Support (for RHEL Server) -    Extended Update Support
    SKU:                 RH01789
    Contract:            
    Pool ID:             22c847f8748a3ba2715ea2303bac20e1
    Provides Management: No
    Available:           16
    Suggested:           1
    Service Type:        
    Roles:               
    Service Level:       Self-Support
    Usage:               
    Add-ons:             
    Subscription Type:   Standard
    Starts:              03/23/2021
    Ends:                03/23/2022
    Entitlement Type:    Physical
      
    
    [USER1@TESTSVR1 ~]$ sudo subscription-manager attach --auto
    Installed Product Current Status:
    Product Name: Red Hat Enterprise Linux Server
    Status:       Subscribed
      
      
    [USER1@TESTSVR1 ~]$ sudo ls -al /etc/yum.repos.d/         
    total 212
    drwxr-xr-x.  2 root root   4096 Mar 23 22:41 .
    drwxr-xr-x. 76 root root   4096 Mar 23 22:39 ..
    -rw-r--r--.  1 root root 205716 Mar 23 22:45 redhat.repo
    
    
    [USER1@TESTSVR1 ~]$ sudo subscription-manager repos --enable=rhel-7-server-rpms
    Repository 'rhel-7-server-rpms' is enabled for this system.
      
    [USER1@TESTSVR1 ~]$ sudo yum repolist all |grep -i enable
    rhel-7-server-rpms/7Server/   x86_64                                            enabled: 31,561
    
    
    [USER1@TESTSVR1 ~]$ sudo yum clean all
    [USER1@TESTSVR1 ~]$ sudo yum list update
    Loaded plugins: product-id, search-disabled-repos,    subscription-manager
    rhel-7-server-rpms                                                                                     | 3.5 kB  00:00:00     
    (1/3): rhel-7-server-rpms/7Server/x86_64/   group                                                      | 631 kB     00:00:00     
    (2/3): rhel-7-server-rpms/7Server/x86_64/   updateinfo                                                 | 4.0 MB     00:00:01     
    (3/3): rhel-7-server-rpms/7Server/x86_64/   primary_db                                                 |  79 MB     00:00:07     
      
    

참고