폐쇄망 저장소(로컬저장소) 구성

1. 생성

$ createrepo 경로


2. 구성

파일 위치 : /etc/yum.repos.d/저장소이름.repo

- name : 저장소 이름 지정
- baseurl : 경로 지정 ex) file:///root/local-repo/CentOS-7
- gpgcheck : gpg key 사용 여부(0 or 1 아래와 동일)
- enabled : 저장소 사용 여부 (0=미사용, 1=사용)

저장소 우선 순위

로컬 저장소보다 기본 저장소를 우선적으로 탐색(최신 버전 및 안정화 된 패키지 제공의 이유로)


저장소 일시적으로 활성/비활성 하는 방법

1. 먼저 Repo-status 확인

$ yum repolist epel -v


Repo-status : enabled 또는 disabled

Repo-status : enabled

 

2. 활성 / 비활성

$ yum --enablerepo=리포지토리명
$ yum --disablerepo=리포지토리명

 

localinstall

설치할 RPM 파일을 가지고 있다면,

yum localinstall 파일명(rpm)

 을 통해 설치에 필요한 의존성 패키지들을 자동으로 설치해준다.

'IT' 카테고리의 다른 글

apache druid(드루이드)  (0) 2023.07.08
Ambari Uninstall  (0) 2023.07.04
maven  (0) 2023.07.02
npm(Node Packaged Manager)  (0) 2023.07.01
Zeppelin  (0) 2023.06.30

+ Recent posts