1. 외부망에서 최신 패키지 받기
- 도구 설치
dnf install -y dnf-plugins-core createrepo
- 디렉토리 생성
mkdir -p /repo/rocky8/{BaseOS,AppStream}
- 최신 패키지만 동기화 (--newest-only)
dnf reposync --repoid=baseos \
--download-path=/repo/BaseOS \
--download-metadata --newest-only
dnf reposync --repoid=appstream \
--download-path=/repo/AppStream \
--download-metadata --newest-only
> 이렇게 하면 과거 버전 제외, 최신만 받아 용량이 13~14GB 수준.
(배포판 패키지와 비슷한 용량)
누적버전을 받으면 100G가 넘어 디스크 용량을 상당히 차지할 수 있다.
2. 메타데이터 생성/갱신
createrepo /repo/BaseOS
createrepo /repo/AppStream
(폴더내 repodata 그대로 옮기면 갱신 안해도 된다.)
3. 옮기기 (USB / IODD / 외장하드 활용)
- /repo/ 안의 BaseOS, AppStream 폴더를 통째로 복사
- 필요 시 tar로 압축
tar czvf rocky8_10_full_repo_250820.tar.gz BaseOS AppStream
내부망 환경에서 리눅스 기본설정에서 USB로 옮길시 FAT32 파일시스템이
적합하나, 이 또한 4G제한이 있고, NTFS등은 별도 tool으 설치해야 하나
ntfs-3g -y 등이 extra 패키지라 Yum로컬설정을 해도 따로 rpm 의존성 파일까지
준비해야 하므로 번거롭다.
노트북으로 직접연결하여 scp, sftp를 이용 마운트하여
복사하는 방법이 무난하다.
4. 내부망 서버에서 로컬 repo 등록
- 복사한 위치를 /mnt/repo/ 같은 경로에 둠
- /etc/yum.repos.d/local.repo 작성:
[BaseOS-local]
name=Rocky 8.10 BaseOS Local
baseurl=file:///repo/BaseOS
enabled=1
gpgcheck=0
[AppStream-local]
name=Rocky 8.10 AppStream Local
baseurl=file:///repo/AppStream
enabled=1
gpgcheck=0
5. 내부망 서버 업데이트
dnf clean all
dnf makecache
dnf upgrade -y
6. 검증 & 마무리
확인
커널 : uname -r
패치 : rpm -qa --last | egrep "kernel|openssl|glibc|sssd|sudo|sshd" (보안파일 위주)
⭐발표자 : 박태진님
1. 외부망에서 최신 패키지 받기
dnf install -y dnf-plugins-core createrepo
mkdir -p /repo/rocky8/{BaseOS,AppStream}
dnf reposync --repoid=baseos \
--download-path=/repo/BaseOS \
--download-metadata --newest-only
dnf reposync --repoid=appstream \
--download-path=/repo/AppStream \
--download-metadata --newest-only
> 이렇게 하면 과거 버전 제외, 최신만 받아 용량이 13~14GB 수준.
(배포판 패키지와 비슷한 용량)
누적버전을 받으면 100G가 넘어 디스크 용량을 상당히 차지할 수 있다.
2. 메타데이터 생성/갱신
createrepo /repo/BaseOS
createrepo /repo/AppStream
(폴더내 repodata 그대로 옮기면 갱신 안해도 된다.)
3. 옮기기 (USB / IODD / 외장하드 활용)
tar czvf rocky8_10_full_repo_250820.tar.gz BaseOS AppStream
내부망 환경에서 리눅스 기본설정에서 USB로 옮길시 FAT32 파일시스템이
적합하나, 이 또한 4G제한이 있고, NTFS등은 별도 tool으 설치해야 하나
ntfs-3g -y 등이 extra 패키지라 Yum로컬설정을 해도 따로 rpm 의존성 파일까지
준비해야 하므로 번거롭다.
노트북으로 직접연결하여 scp, sftp를 이용 마운트하여
복사하는 방법이 무난하다.
4. 내부망 서버에서 로컬 repo 등록
[BaseOS-local]
name=Rocky 8.10 BaseOS Local
baseurl=file:///repo/BaseOS
enabled=1
gpgcheck=0
[AppStream-local]
name=Rocky 8.10 AppStream Local
baseurl=file:///repo/AppStream
enabled=1
gpgcheck=0
5. 내부망 서버 업데이트
dnf clean all
dnf makecache
dnf upgrade -y
6. 검증 & 마무리
dnf history
reboot
확인
커널 : uname -r
패치 : rpm -qa --last | egrep "kernel|openssl|glibc|sssd|sudo|sshd" (보안파일 위주)
⭐발표자 : 박태진님