Actions
Yum repository 설정¶
epel repo 추가
yum install epel-release
- HDP repository list
Redhat 6 hdp2.6 : http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.6.4.0 hdp2.6GPL : http://public-repo-1.hortonworks.com/HDP-GPL/centos6/2.x/updates/2.6.4.0 hdp-utilshttp://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/centos6 redhat7 http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.4.0 http://public-repo-1.hortonworks.com/HDP-GPL/centos7/2.x/updates/2.6.4.0 http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/centos7 ubuntu16 http://public-repo-1.hortonworks.com/HDP/ubuntu16/2.x/updates/2.6.4.0 http://public-repo-1.hortonworks.com/HDP-GPL/ubuntu16/2.x/updates/2.6.4.0 http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/ubuntu16 ubuntu14 http://public-repo-1.hortonworks.com/HDP/ubuntu14/2.x/updates/2.6.4.0 http://public-repo-1.hortonworks.com/HDP-GPL/ubuntu14/2.x/updates/2.6.4.0 http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/ubuntu14
- Repository 구성을 위해 RPM 패키지 다운로드
Yum sync
- 다운로드한 RPM 패키지를 로컬에 저장 후 리포지터리로 사용하는 경우
Local respository 설정
- 네트워크 상에서 RPM 배포를 위한 리포지터리 서버로 사용하는 경우
Repository 서버 설정
- yum 명령어 사용법
-> 패키지 설치. 패키지명 뒤에 와일드카드 사용 시 입력한 문자열이 포함된 모든 패키지를 설치할 수 있다. sudo yum install packagename -> 패키지를 다운로드만 할 때 sudo yum install packagename --downloadonly --downloaddir=/target_dir
***자주 쓰이는 명령어
-h, --help | show this help message and exit |
---|---|
--installroot=[path] | set install root |
--enablerepo=[repo] | enable one or more repositories (wildcards allowed) |
--disablerepo=[repo] | disable one or more repositories (wildcards allowed) |
--skip-broken | skip packages with depsolving problems |
--downloadonly | don't update, just download |
--downloaddir=DLDIR | specifies an alternate directory to store packages |
SANGKYU KANG이(가) 6년 이상 전에 변경 · 37 revisions