-
RHEL (Redhat Enterprise Linux 8) 8.5 local repo 설정OS/Linux 2023. 1. 12. 12:15반응형
1. local repository 생성
Redhat Linux 를 설치한 ISO 파일을 root로 복사
예
-rw-r--r-- 1 root root 10975444992 Nov 23 2021 rhel-8.5-x86_64-dvd.is
2. 복사한 iso mount
mount -t iso9660 -o loop /root/rhel-8.5-x86_64-dvd.iso /media
3. repository 디렉토리 생성
mkdir /repository
4. iso에서 복사
cp -a /media/* /repository/
5. repo 내용 작성
vi /etc/yum.repos.d/RHEL8.repo
[InstallMedia-BaseOS]
name=RHEL 8 - BaseOS
metadata_expire=-1
gpgcheck=1
enabled=1
baseurl=file:///repository/BaseOS
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[InstallMedia-AppStream]
name=RHEL 8 - AppStream
metadata_expire=-1
gpgcheck=1
enabled=1
baseurl=file:///repository/AppStream/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release6. 명령어 수행
dnf clean all
subscription-manager clean
yum grouplist
[root]# dnf clean all
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered with an entitlement server. You can use subscription-manager to register.
15 files removed
[root]# subscription-manager clean
All local data removed
[root]# yum grouplist
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered with an entitlement server. You can use subscription-manager to register.
RHEL 8 - BaseOS 30 MB/s | 2.4 MB 00:00
RHEL 8 - AppStream 54 MB/s | 7.2 MB 00:00
Last metadata expiration check: 0:00:01 ago on Thu Jan 12 21:09:56 2023.
Available Environment Groups:
Server
Minimal Install
Workstation
Custom Operating System
Virtualization Host
Installed Environment Groups:
Server with GUI
Installed Groups:
Container Management
Headless Management
Available Groups:
Legacy UNIX Compatibility
Development Tools
.NET Core Development
Graphical Administration Tools
Network Servers
RPM Development Tools
Scientific Support
Security Tools
Smart Card Support
System Tools7. 완료 - dnf를 통한 설치 가능
dnf install xxx (gcc)
반응형'OS > Linux' 카테고리의 다른 글
RHEL (Redhat) 8 - nmon 설치 (0) 2023.01.12 Linux 특정 Port 열기 (닫기) (0) 2017.09.26