위로
아래
RHEL yum 사용
RHEL은 계정이 있어야 yum 사용 가능.
대신 이미지 iso 파일을 local repository로 사용하여 그 안에 있는 패키지들은 yum으로 사용할 수 있다
iso 파일 마운트
iso 파일 업로드
배포 시 썼던 이미지 iso 파일 업로드
iso 파일 마운트
mount -o loop <iso 파일 위치> <마운트 위치>
mount -o loop /root/rhel-8.10-x86_64-dvd.iso /mnt
마운트 완료
마운트 경로에 가보면 다음 2개의 디렉토리가 있다
- BaseOS
- AppStream
yum repository 변경
yum repository 경로로 이동
cd /etc/yum.repos.d
redhat.repo 레파지토리가 있다
local.repo 파일 생성
/etc/yum.repos.d/local.repo
[rhel-BaseOS]
name=Red Hat Enterprise Linux $releasever - $basearch - BaseOS
baseurl=file:///mnt/BaseOS/
gpgcheck=0
Enabled=1
[rhel-AppStream]
name=Red Hat Enterprise Linux $releasever - $basearch - AppStream
baseurl=file:///mnt/AppStream/
gpgcheck=0
Enabled=1
yum repository 변경
yum clean all
redhat에 register 안 했다고 경고 뜨는데 무시하면 된다
This system is not registered with an entitlement server. You can use subscription-manager to register.
repository list 확인
yum repolist
yum에 있는 목록 확인
yum list all
yum 사용 확인
yum update -y
register 경고 문구는 계속 뜨나 정상적으로 사용 가능