본문 바로가기
OS-OE Knowledge/Linux-Unix KB

RHEL8/Build for RHEL 8 local Repository.

by 스쳐가는인연 2021. 11. 12.

Build for RHEL 8 local repository.

RHEL 8 부터 ODD media를 이용한 local repository 구성 방법이 일부 변경되었음을 알게되어...
이런 저런 삽질 후에 ... 기록 남기기 ...

1. mount point 생성
# mkdir -p /media/odd

2. media mount
# mount -o loop /dev/cdrom /media/odd

3. repository 정보 생성
# vim /etc/yum.repos.d/odd.repo

아래 형태로 기입

[RHEL8DVD_BaseOS]
name=RHEL8DVD_BaseOS
baseurl=file:///media/odd/BaseOS/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[RHEL8DVD_AppStream]
name=RHEL8DVD_AppStream
baseurl=file:///media/odd/AppStream/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

4. repository 정보 업데이트
# dnf clean all

or # yum clean all

 

# yum repolist

5. 필요 패키지 설치
# yum install <package_name>

참고
https://www.itzgeek.com/how-tos/linux/centos-how-tos/how-to-create-local-yum-repository-on-rhel-8-using-dvd.html

 

 

 

 

 

반응형