Yum repository 설정 » 이력 » 버전 37
SANGKYU KANG, 2018-10-02 11:52 오후
1 | 1 | SANGKYU KANG | |
---|---|---|---|
2 | 36 | SANGKYU KANG | |
3 | 1 | SANGKYU KANG | h1. Yum repository 설정 |
4 | 2 | SANGKYU KANG | |
5 | 37 | SANGKYU KANG | |
6 | epel repo 추가 |
||
7 | yum install epel-release |
||
8 | |||
9 | |||
10 | |||
11 | 30 | SANGKYU KANG | * HDP repository list |
12 | <pre> |
||
13 | Redhat 6 |
||
14 | |||
15 | hdp2.6 : http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.6.4.0 |
||
16 | hdp2.6GPL : http://public-repo-1.hortonworks.com/HDP-GPL/centos6/2.x/updates/2.6.4.0 |
||
17 | hdp-utilshttp://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/centos6 |
||
18 | |||
19 | redhat7 |
||
20 | http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.4.0 |
||
21 | http://public-repo-1.hortonworks.com/HDP-GPL/centos7/2.x/updates/2.6.4.0 |
||
22 | http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/centos7 |
||
23 | |||
24 | ubuntu16 |
||
25 | http://public-repo-1.hortonworks.com/HDP/ubuntu16/2.x/updates/2.6.4.0 |
||
26 | http://public-repo-1.hortonworks.com/HDP-GPL/ubuntu16/2.x/updates/2.6.4.0 |
||
27 | http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/ubuntu16 |
||
28 | |||
29 | ubuntu14 |
||
30 | http://public-repo-1.hortonworks.com/HDP/ubuntu14/2.x/updates/2.6.4.0 |
||
31 | http://public-repo-1.hortonworks.com/HDP-GPL/ubuntu14/2.x/updates/2.6.4.0 |
||
32 | http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/ubuntu14 |
||
33 | </pre> |
||
34 | |||
35 | 1 | SANGKYU KANG | * Repository 구성을 위해 RPM 패키지 다운로드 |
36 | 36 | SANGKYU KANG | [[Yum sync]] |
37 | 1 | SANGKYU KANG | |
38 | 3 | SANGKYU KANG | |
39 | 34 | SANGKYU KANG | * 다운로드한 RPM 패키지를 로컬에 저장 후 리포지터리로 사용하는 경우 |
40 | 36 | SANGKYU KANG | [[Local respository 설정]] |
41 | 34 | SANGKYU KANG | |
42 | 5 | SANGKYU KANG | |
43 | 34 | SANGKYU KANG | * 네트워크 상에서 RPM 배포를 위한 리포지터리 서버로 사용하는 경우 |
44 | 36 | SANGKYU KANG | [[Repository 서버 설정]] |
45 | 7 | SANGKYU KANG | |
46 | |||
47 | |||
48 | 19 | SANGKYU KANG | ** yum 명령어 사용법 |
49 | <pre> |
||
50 | 29 | SANGKYU KANG | -> 패키지 설치. 패키지명 뒤에 와일드카드 사용 시 입력한 문자열이 포함된 모든 패키지를 설치할 수 있다. |
51 | 21 | SANGKYU KANG | sudo yum install packagename |
52 | 19 | SANGKYU KANG | |
53 | -> 패키지를 다운로드만 할 때 |
||
54 | 21 | SANGKYU KANG | sudo yum install packagename --downloadonly --downloaddir=/target_dir |
55 | 22 | SANGKYU KANG | </pre> |
56 | 19 | SANGKYU KANG | |
57 | 22 | SANGKYU KANG | ***자주 쓰이는 명령어 |
58 | 28 | SANGKYU KANG | |
59 | 26 | SANGKYU KANG | |_. -h, --help | show this help message and exit | |
60 | 23 | SANGKYU KANG | |_. --installroot=[path] | set install root | |
61 | |_. --enablerepo=[repo] | enable one or more repositories (wildcards allowed) | |
||
62 | 18 | SANGKYU KANG | |_. --disablerepo=[repo] | disable one or more repositories (wildcards allowed) | |
63 | |_. --skip-broken | skip packages with depsolving problems | |
||
64 | |_. --downloadonly | don't update, just download | |
||
65 | 27 | SANGKYU KANG | |_. --downloaddir=DLDIR | specifies an alternate directory to store packages | |