4.3. reposync를 사용하여 RPM 리포지토리 동기화
reposync를 수행하려면 인터넷에 액세스할 수 있는 RHEL 호스트가 필요합니다. 리포지토리를 동기화한 후 리포지토리를 웹 서버에서 호스팅되는 연결이 끊긴 네트워크로 이동할 수 있습니다.
절차
BaseOS 및 AppStream 필수 리포지토리를 연결합니다.
# subscription-manager repos \ --enable rhel-8-for-x86_64-baseos-rpms \ --enable rhel-8-for-x86_64-appstream-rpms
reposync를 수행합니다.
# dnf install yum-utils # reposync -m --download-metadata --gpgcheck \ -p /path/to/download
--download-metadata
와--newest-only
없이 reposync를 사용합니다. RHEL 8 Reposync를 참조하십시오.-
--newest-only를 사용하지 않는 경우
다운로드한 리포지토리는 ~90GB가 됩니다. -
--newest-only를 사용하는 경우
다운로드한 리포지토리는 ~14GB가 됩니다.
-
Red Hat Single Sign-On을 사용하려는 경우 다음 리포지토리를 동기화합니다.
- jb-eap-7.3-for-rhel-8-x86_64-rpms
- rh-sso-7.4-for-rhel-8-x86_64-rpms
reposync가 완료되면 리포지토리를 웹 서버와 함께 사용할 준비가 된 것입니다.
- 리포지토리를 연결이 끊긴 네트워크로 이동합니다.