This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.

Please visit our production wiki at https://wiki.gentoo.org

Handbook:Alpha/Portage/CustomTree/ko

From Gentoo Wiki (test)
Jump to:navigation Jump to:search
This page is a translated version of the page Handbook:Alpha/Portage/CustomTree and the translation is 100% complete.
Alpha 핸드북
설치
설치 정보
매체 선택
네트워크 설정
디스크 준비
스테이지 3 설치
베이스 시스템 설치
커널 설정
시스템 설정
도구 설치
부트로더 설정
마무리
젠투 활용
포티지 소개
USE 플래그
포티지 기능
초기화 스크립트 시스템
환경 변수
포티지 활용
파일 및 디렉터리
변수
소프트웨어 브랜치 함께 사용하기
추가 도구
꾸러미 저장소 개별 설정
고급 기능
네트워크 설정
시작하기
고급 설정
모듈러 네트워크
무선 네트워크
기능 추가
동적 관리


젠투 저장소 하위 세트 활용

꾸러미 및 분류 항목 제외

각각의 분류 항목/꾸러미를 선택적으로 업데이트 할 수 있으며 다른 분류 항목/꾸러미를 무시할 수 있습니다. rsync로 emerge --sync 단계를 수행하는 동안 각각의 분류 항목/꾸러미를 제외하여 처리할 수 있습니다.

/etc/portage/make.confPORTAGE_RSYNC_EXTRA_OPTS 변수에 제외할 패턴이 담긴 파일 이름을 정의해야 합니다.

파일 /etc/portage/make.conf제외 파일 지정
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
파일 /etc/portage/rsync_excludes모든 게임 제외
games-*/*

하지만, 허용한 새로운 꾸러미 일부가 제외한 새로운 꾸러미에 의존하는 문제가 있을 수 있음을 참고하십시오.

비공식 ebuild 추가

개별 저장소 지정

젠투 저장소에 공식적으로 존재하지 않는 ebuild를 사용하도록 포티지에 요청할 수 있습니다. 서드파티 ebuild를 저장할 새 디렉터리(예를 들어 /usr/local/portage)를 만드십시오. 공식 젠투 저장소와 같은 디렉터리 구조를 사용하십시오!

root #mkdir -p /usr/local/portage/{metadata,profiles}
root #chown -R portage:portage /usr/local/portage

다음 저장소를 알아볼 수 있는 이름을 지으십시오. 다음 예제에서는 저장소 이름을 "localrepo"로 사용합니다:

root #echo 'localrepo' > /usr/local/portage/profiles/repo_name

포티지에 master 저장소를 주 젠투 저장소로, 해당 저장소를 자동으로 동기화하지 않게하겠습니다(rsync 서버, git 미러 또는 다른 저장소 공급원으로 받쳐주지 않았기 때문):

파일 /usr/local/portage/metadata/layout.conf
masters = gentoo
auto-sync = false

마지막으로, 로컬 저장소를 찾을 수 있는 위치를 포티지에 알리는 /etc/portage/repos.conf 파일에 저장소 설정 파일을 만들어 로컬 파일 시스템의 저장소를 활성화하겠습니다.

파일 /etc/portage/repos.conf/localrepo.conf
[localrepo]
location = /usr/local/portage

다양한 오버레이 다루기

다양한 소스로부터 비공식 ebuild를 사용하려 하거나, 젠투 저장소에 올려놓기 전 꾸러미를 테스트하거나, 다양한 오버레이를 개발하는 고급 사용자를 위해 app-portage/layman 꾸러미에서 최신의 오버레이 저장소를 유지하도록 도와주는 도구인 layman을 제공합니다.

Alternatively, install app-eselect/eselect-repository to utilize the native synchronization in Portage. See also Eselect/Repository

eselect-repository

Adding repositories is simple with this tool.

For instance, to enable the hardened-development overlay:

root #eselect repository enable hardened-development

Updating of overlays added with this methods happens naturally with:

root #emerge --sync

일단 먼저 설치하고 오버레이 사용자 안내서en에서 안내하는 대로 layman을 설정하신 다음, layman -a명령으로 사용하려는 저장소를 추가하십시오.

hardened-development 오버레이를 활성화하려면:

root #layman -a hardened-development

layman을 통해 사용하는 저장소의 수와는 상관없이, 모든 저장소를 다음 명령으로 업데이트할 수 있습니다:

root #layman -S

오버레이를 다루는 내용을 더 많이 찾아보시려면 man layman를 읽어보시고 이전에 연결해둔 layman/overlay 사용자 안내서를 읽어보십시오.

포티지에서 관리하지 않는 프로그램

자체 관리 프로그램으로 포티지 사용

Sometimes users want to configure, install and maintain software individually without having Portage automate the process, even though Portage can provide the software titles. Known cases are kernel sources and Nvidia drivers. It is possible to configure Portage so it knows that a certain package is manually installed on the system (and thus take this information into account when calculating dependencies). This process is called injecting and is supported by Portage through the /etc/portage/profile/package.provided file.

For instance, to inform Portage about gentoo-sources-4.9.16 which has been installed manually, add the following line to /etc/portage/profile/package.provided:

파일 /etc/portage/profile/package.providedMarking gentoo-sources-4.9.16 as manually installed
sys-kernel/gentoo-sources-4.9.16
참고
This is a file that uses versions without an = operator.