주연시스템즈

RHEL 7 yum update 본문

서버OS

RHEL 7 yum update

임종수 2018. 11. 28. 11:26
반응형

RHEL 에서 yum update 를 실시하면
 
'This system is not registered with an entitlement server. You can use subscription-manager to register.'
 
메세지와 함께 라이선스 등록해야 update 된다는 내용으로 진행불가 상태
 


CentOS 로 우회하여 yum update 진행해보자
 
1. repository 생성

# vi /etc/yum.repos.d/rhel_steven.repo
 

[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
baseurl=http://mirror.centos.org/centos/7/os/$basearch/
gpgcheck=1
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#released updates
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
baseurl=http://mirror.centos.org/centos/7/updates/$basearch/
gpgcheck=1
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7



wq!

2. 인터넷을 통한 yum 설정

# vi /etc/resolv.conf
nameserver 8.8.8.8
 
wq!
 
# service network restart


3. yum list

# yum list
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
base                                                                                                                                                                                    | 1.1 kB  00:00:00
update                                                                                                                                                                                  |  951 B  00:00:00
(1/3): update/x86_64/primary                                                                                                                                                            | 861 kB  00:00:01
(2/3): base/x86_64/group                                                                                                                                                                | 710 kB  00:00:02
(3/3): base/x86_64/primary                                                                                                                                                              | 715 kB  00:00:02
base                                                                                                                                                                                                 1844/1844
update                                                                                                                                                                                               1955/1955
Installed Packages
GConf2.x86_64                                                                                               3.2.6-8.el7                                                                           @anaconda/7.5
GeoIP.x86_64                                                                                                1.5.0-11.el7                                                                          @anaconda/7.5
ModemManager.x86_64                                                                                         1.6.10-1.el7                                                                          @anaconda/7.5
ModemManager-glib.x86_64                                                                                    1.6.10-1.el7                                                                          @anaconda/7.5
NetworkManager.x86_64                                                                                       1:1.10.2-13.el7                                                                       @anaconda/7.5
NetworkManager-adsl.x86_64                                                                                  1:1.10.2-13.el7                                                                       @anaconda/7.5
NetworkManager-config-server.noarch                                                                         1:1.10.2-13.el7                                                                       @anaconda/7.5
NetworkManager-glib.x86_64                                                                                  1:1.10.2-13.el7                                                                       @anaconda/7.5
NetworkManager-libnm.x86_64                                                                                 1:1.10.2-13.el7                                                                       @anaconda/7.5
NetworkManager-libreswan.x86_64                                                                             1.2.4-2.el7                                                                           @anaconda/7.5
NetworkManager-libreswan-gnome.x86_64                                                                       1.2.4-2.el7                                                                           @anaconda/7.5
NetworkManager-ppp.x86_64                                                                                   1:1.10.2-13.el7                                                                       @anaconda/7.5
NetworkManager-team.x86_64                                                                                  1:1.10.2-13.el7                                                                       @anaconda/7.5
NetworkManager-tui.x86_64                                                                                   1:1.10.2-13.el7                                                                       @anaconda/7.5
NetworkManager-wifi.x86_64                                                                                  1:1.10.2-13.el7                                                                       @anaconda/7.5
ORBit2.x86_64                                                                                               2.14.19-13.el7                                                                        @anaconda/7.5
PackageKit.x86_64                                                                                           1.1.5-1.el7                                                                           @anaconda/7.5
PackageKit-command-not-found.x86_64                                                                         1.1.5-1.el7                                                                           @anaconda/7.5
PackageKit-glib.x86_64                                                                                      1.1.5-1.el7                                                                           @anaconda/7.5
PackageKit-gstreamer-plugin.x86_64                                                                          1.1.5-1.el7                                                                           @anaconda/7.5
PackageKit-gtk3-module.x86_64                                                                               1.1.5-1.el7                                                                           @anaconda/7.5
PackageKit-yum.x86_64                                                                                       1.1.5-1.el7                                                                           @anaconda/7.5
PyYAML.x86_64                                                                                               3.10-11.el7                                                                           @anaconda/7.5
Red_Hat_Enterprise_Linux-Release_Notes-7-en-US.noarch                                                       7-2.el7                                                                               @anaconda/7.5
Red_Hat_Enterprise_Linux-Release_Notes-7-ko-KR.noarch                                                       7-3.el7                                                                               @anaconda/7.5


동일하게 라이선스관련 에러는 보이지만
update 진행은 순조롭게 진행된다
 

반응형
Comments