[리눅스] CentOS 8 / RHEL 8 외부 Repository 설정

반응형

외부 DNS 설정 (통신 필요)

command :

# vim /etc/resolv.conf

nameserver 168.126.63.1

 

 

CentOS 8, RHEL 8 외부 Repository 설정하기

command : 

# cat /etc/yum.repos.d/centos.repo

 

[AppStream]
name=CentOS-$releasever - AppStream
baseurl=https://vault.centos.org/8.4.2105/AppStream/x86_64/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Official

[BaseOS]
name=CentOS-$releasever - Base
baseurl=https://vault.centos.org/8.4.2105/BaseOS/x86_64/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Official

[extras]
name=CentOS-$releasever - Extras
baseurl=https://vault.centos.org/8.4.2105/extras/x86_64/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Official

 

 

GPG-KEY 설정

command :

# cd /etc/pki/rpm-gpg/

# wget https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official  // CentOS GPG-KEY가 원래는 버전마다 있지만, 8부터는 Official 키를 사용하는듯하네요

# ls
RPM-GPG-KEY-CentOS-Official

RPM-GPG-KEY-redhat-release

RPM-GPG-KEY-redhat-beta

 

 

업데이트

command :

# yum clean all

# yum update -y

(생략)

 

installed:
  centos-indexhtml-8.0-0.el8.noarch
  grub2-tools-efi-1:2.02-99.el8_4.1.x86_64
  kernel-4.18.0-305.25.1.el8_4.x86_64
  kernel-core-4.18.0-305.25.1.el8_4.x86_64
  kernel-devel-4.18.0-305.25.1.el8_4.x86_64
  kernel-modules-4.18.0-305.25.1.el8_4.x86_64

Complete!

 

※. 만약, yum update -y 실행 후 GPG-KEY 인증 오류 시 gpgcheck=0(비활성화)로 설정 및 gpgkey 주석 처리 후 재진행

반응형

댓글

Designed by JB FACTORY