- LINUX

[Rocky] local repository 설정






1. 버전

Rocky-9.2







2. 설명





2-1. repository 설명

Rocky 8 버전부터는 2개의 repository를 사용합니다.


BaseOS
– 운영체제의 기반이 되는 기본 기능의 코어 세트를 제공하는 데 사용

AppStream
– 운영 서비스에서 수행 가능한 Application, 런타임 언어 및 데이터베이스 등이 포함







3. Local Repository





3-1. 기존 repo 백업

# mkdir /etc/yum.repos.d/repo_backup
# mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/repo_backup/




3-2. repo 확인

# dnf repolist

No repositories available




3-3. ISO 마운트

# mount Rocky-9.2-x86_64-dvd.iso /mnt/




3-4. local repo 생성

# dnf config-manager –add-repo file:///mnt/BaseOS
# ls /etc/yum.repos.d/

mnt_BaseOS.repo  repo_backup


# echo “gpgcheck=0” >> /etc/yum.repos.d/mnt_BaseOS.repo
# cat /etc/yum.repos.d/mnt_BaseOS.repo

[mnt_BaseOS]
name=created by dnf config-manager from file:///mnt/BaseOS
baseurl=file:///mnt/BaseOS
enabled=1
gpgcheck=0


name: repo 이름
baseurl: package, repodata 위치
enabled: repo 활성, 비활성 설정
gpgcheck: GPG 서명 사용

※ GPG(GNU Privacy Guard)
– rpm package를 인증하는데 사용하는 암호화 서명




3-5. repo 확인

# dnf repolist

repo id        repo name
mnt_BaseOS     created by dnf config-manager from file:///mnt/BaseOS




3-6. 추가 repo 생성

# dnf config-manager –add-repo file:///mnt/AppStream
# echo “gpgcheck=0” >> /etc/yum.repos.d/mnt_AppStream.repo
# dnf repolist

repo id        repo name
mnt_AppStream  created by dnf config-manager from file:///mnt/AppStream
mnt_BaseOS     created by dnf config-manager from file:///mnt/BaseOS







4. 테스트

# dnf search nfs
# dnf -y install nfs-utils
# rpm -qa | grep nfs-utils

nfs-utils-2.5.4-18.el9.x86_64



seuheu

최근 게시물

[Linux] Rocky Linux 9.5 LVM 스냅샷 실습 ext4/XFS 스냅샷 생성·변경·병합(롤백) 가이드[Linux] Rocky Linux 9.5 LVM 스냅샷 실습 ext4/XFS 스냅샷 생성·변경·병합(롤백) 가이드

1. 개요 본 글은 LVM의 스냅샷(snapshot) 기능으로 복구 지점 생성 → 파일 변경 → 스냅샷 병합(rollback) 과정을 실습합니다. 동일한…

%일 전

[Linux] Rocky Linux 9.5 LVM PV/VG/LV 구축, 온라인 확장, ext4 오프라인 축소

https://youtu.be/ZcxB7akkDKs 1. 개요 두 개의 디스크(/dev/vdb, /dev/vdc)로 LVM을 구성하고, ext4·XFS 파일시스템 생성 → 마운트 → VG/LV 확장 → ext4 축소(오프라인)까지 전체…

%일 전

[Linux] Rocky Linux 9.5 Parted로 GPT 파티셔닝: ext4/XFS 포맷과 fstab 자동 마운트

https://youtu.be/XYBR1ZFrV9s 1. 개요 parted를 사용해 새 디스크에 GPT 라벨 생성 → 파티션 생성(ext4/XFS) → 포맷/마운트 →…

%일 전

[Linux] Rocky Linux 9.5 FDISK MBR 파티셔닝 : ext4/XFS 포맷과 fstab 자동 마운트

https://youtu.be/yYV8RQKCFzA 1. 개요 이 문서는 fdisk를 사용해 MBR(DOS) 디스크에 파티션을 생성하고, ext4/XFS 파일시스템을 포맷·마운트, /etc/fstab에 등록했다가, 안전하게 해제·삭제하는 전…

%일 전

[Linux] MBR vs GPT : 리눅스 파티션 방식 쉽게 비교

1. 개요 Linux에서 디스크 파티션 스타일은 MBR(Master Boot Record) 와 GPT(GUID Partition Table)에 대해 설명합니다. 2. MBR이란? 디스크…

%일 전

[WindowsServer] Windows Server 2025 설치

https://youtu.be/CNd1bJV4wGY 1. 개요 Windows Server를 새로 설치할 때의 설치 과정을 단계별로 정리하였습니다. Windows Server 설치…

%일 전