- 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

최근 게시물

[Raspberry Pi] OpenMediaVault 설치하기 | 10분 만에 NAS 구축

https://youtu.be/hlBddMVRL9Q 1. 개요 OpenMediaVault(OMV)는 Debian 기반의 오픈소스 NAS(Network Attached Storage) 운영체제로, 웹 브라우저를 통해 스토리지,…

%일 전

[Raspberry Pi] Raspberry Pi OS Lite 설치 방법 (Raspberry Pi Imager 사용)

https://youtu.be/iCUa8Ua8fIg 1. 개요 Raspberry Pi OS Lite를 Raspberry Pi Imager를 이용하여 설치하는 방법을 설명합니다. 2.…

%일 전

[CKA] Certified Kubernetes Administrator 합격 후기 (90점 합격)

안녕하세요.이번에 CKA(Certified Kubernetes Administrator) 시험에서 90점으로 합격했습니다. (합격 기준 66점) 합격 자체도 기뻤지만, 이번 시험을 준비하면서…

%일 전

[Linux] Rocky Linux 9.5 NFS 구성 및 테스트 가이드 (rw/ro + root_squash 비교)

https://youtu.be/n8-wlkZiqio 1. 개요 NFS(Network File System)를 설치하고, rw/ro 및 root_squash 옵션에 따른 접근 제어와 성능을 테스트하는 방법을 정리한 가이드입니다.…

%일 전

[Linux] Rocky Linux 9.5 Cron 설정 및 테스트 방법

https://youtu.be/4MVxzmepY3s 1. 개요 리눅스에서 정기적으로 실행되는 작업(백업, 로그 정리, 모니터링 등)은 cron 서비스를 통해 자동화할 수 있습니다.…

%일 전

[Linux] Rocky Linux 9.5 계정 관리 (생성 · 권한 · 잠금 · 삭제) 정리

https://youtu.be/vPfxWFBE1yc 1. 개요 리눅스 서버를 운영할 때 사용자 계정 생성, 비밀번호 설정, 권한 부여, 계정…

%일 전