프로젝트

일반

사용자정보

Yum repository 설정 » 이력 » 버전 24

SANGKYU KANG, 2018-04-20 09:57 오전

1 1 SANGKYU KANG
h1. Yum repository 설정
2 2 SANGKYU KANG
3 6 SANGKYU KANG
* Repository 구성을 위해 RPM 패키지 다운로드
4 2 SANGKYU KANG
[[Yum sync]]
5 3 SANGKYU KANG
6 5 SANGKYU KANG
* 다운로드한 RPM 패키지를 로컬에 저장 후 리포지터리로 사용하는 경우
7 3 SANGKYU KANG
[[Local respository 설정]]
8 4 SANGKYU KANG
9 5 SANGKYU KANG
* 네트워크 상에서 RPM 배포를 위한 리포지터리 서버로 사용하는 경우
10 4 SANGKYU KANG
[[Repository 서버 설정]]
11 7 SANGKYU KANG
12
13
14 19 SANGKYU KANG
** yum 명령어 사용법
15
<pre>
16
-> 패키지 설치. 패키지명 뒤에 와일드카드 사용 시 비슷한 이름의 패키지를 모두 설치할 수 있다.
17 21 SANGKYU KANG
sudo yum install packagename
18 19 SANGKYU KANG
19
-> 패키지를 다운로드만 할 때
20 21 SANGKYU KANG
sudo yum install  packagename  --downloadonly --downloaddir=/target_dir
21 22 SANGKYU KANG
</pre>
22 19 SANGKYU KANG
23 22 SANGKYU KANG
***자주 쓰이는 명령어
24 19 SANGKYU KANG
25 24 SANGKYU KANG
|_. -h, --help             | show this help message and exit                      |
26 23 SANGKYU KANG
    	    |_.   --installroot=[path] | set install root                                     |
27
	    |_.   --enablerepo=[repo]  | enable one or more repositories (wildcards allowed)  |
28 18 SANGKYU KANG
	|_.   --disablerepo=[repo] | disable one or more repositories (wildcards allowed) |
29
	|_.   --skip-broken        | skip packages with depsolving problems |
30
	|_.   --downloadonly       | don't update, just download |
31 19 SANGKYU KANG
	|_.   --downloaddir=DLDIR  | specifies an alternate directory to store packages |