Handbook:Parts/Portage/Variables/ko

포티지 설정
앞서 말씀드린 바와 같이 포티지는 와 하위 디렉터리 중 하나에 정의한 수많은 변수로 설정할 수 있습니다. 더욱 많은 완전한 정보를 보시려면 와 포티지의 맨 페이지를 참고하십시오.

configure 및 컴파일러 옵션
포티지가 프로그램을 빌드할 때 다음 변수의 내용을 컴파일러와 configure 스크립트에 전달합니다:


 * CFLAGS and CXXFLAGS define the desired compiler flags for C and C++ compiling.
 * CHOST defines the build host information for the application's configure script
 * MAKEOPTS is passed to the make command and is usually set to define the amount of parallelism used during the compilation. More information about the make options can be found in the make man page.

The USE variable is also used during configure and compilations but has been explained in great detail in previous chapters.

병합 옵션
When Portage has merged a newer version of a certain software title, it will remove the obsoleted files of the older version from the system. Portage gives the user a 5 second delay before unmerging the older version. These 5 seconds are defined by the CLEAN_DELAY variable.

It is possible to tell emerge to use certain options every time it is run by setting EMERGE_DEFAULT_OPTS. Some useful options would be,  ,  , and so on.

포티지에서 보호한 위치
Portage overwrites files provided by newer versions of a software title if the files aren't stored in a protected location. These protected locations are defined by the CONFIG_PROTECT variable and are generally configuration file locations. The directory listing is space-delimited.

보호한 위치에 기록할 파일은 이름을 바꾸어두며 사용자는 (존재 추정할 수 있는) 설정 파일의 새 버전이 존재함을 포티지가 알려줍니다.

To find out about the current CONFIG_PROTECT setting, use the output:

More information about Portage's configuration file protection is available in the CONFIGURATION FILES section of the emerge manpage:

디렉터리 제외
To 'unprotect' certain subdirectories of protected locations users can use the CONFIG_PROTECT_MASK variable.

서버 위치
When the requested information or data is not available on the system, Portage will retrieve it from the Internet. The server locations for the various information and data channels are defined by the following variables:


 * GENTOO_MIRRORS defines a list of server locations which contain source code (distfiles)
 * PORTAGE_BINHOST defines a particular server location containing prebuilt packages for the system

A third setting involves the location of the rsync server which users use to update their Portage tree. This is defined in the file (or a file inside that directory if it is defined as a directory):


 * sync-type defines the type of server and defaults to
 * sync-uri defines a particular server which Portage uses to fetch the Portage tree from

The GENTOO_MIRRORS, sync-type , and sync-uri variables can be set automatically through the application. Of course, needs to be installed first before it can be used. For more information, see mirrorselect's online help:

If the environment requires the use of a proxy server, then the http_proxy, ftp_proxy , and RSYNC_PROXY variables can be declared.

가져오기 명령
When Portage needs to fetch source code, it uses wget by default. This can be changed through the FETCHCOMMAND variable.

Portage is able to resume partially downloaded source code. It uses wget by default, but this can be altered through the RESUMECOMMAND variable.

Make sure that the FETCHCOMMAND and RESUMECOMMAND store the source code in the correct location. Inside the variables the \${URI} and \${DISTDIR} variables can be used to point to the source code location and distfiles location respectively.

It is also possible to define protocol-specific handlers with FETCHCOMMAND_HTTP, FETCHCOMMAND_FTP , RESUMECOMMAND_HTTP , RESUMECOMMAND_FTP , and so on.

rsync 설정
포티지 트리를 업데이트할 포티지가 사용하는 rsync 명령을 다른 수단으로 대체할 수 있지만, rsync 명령과 관련된 일부 변수도 설정할 수 있습니다:


 * PORTAGE_RSYNC_OPTS sets a number of default variables used during sync, each space-separated. These shouldn't be changed unless you know exactly what you're doing. Note that certain absolutely required options will always be used even if PORTAGE_RSYNC_OPTS is empty.


 * PORTAGE_RSYNC_EXTRA_OPTS can be used to set additional options when syncing. Each option should be space separated.
 * : This defines the number of seconds an rsync connection can idle before rsync sees the connection as timed-out. This variable defaults to  but dialup users or individuals with slow computers might want to set this to   or higher.
 * : This points to a file listing the packages and/or categories rsync should ignore during the update process. In this case, it points to.
 * : Reduces output to the screen
 * : Prints a complete filelist
 * : Displays a progress meter for each file


 * PORTAGE_RSYNC_RETRIES defines how many times rsync should try connecting to the mirror pointed to by the SYNC variable before bailing out. This variable defaults to.

이 옵션을 포함한 더 많은 내용을 알아보시려면 man rsync를 참조하십시오.

브랜치 선택
It is possible to change the default branch with the ACCEPT_KEYWORDS variable. It defaults to the architecture's stable branch. More information on Gentoo's branches can be found in the next chapter.

포티지 기능
It is possible to activate certain portage features through the FEATURES variable. The Portage features have been discussed in previous chapters.

자원 관리
With the PORTAGE_NICENESS variable users can augment or reduce the nice value portage runs with. The PORTAGE_NICENESS value is added to the current nice value.

nice 값에 대한 더 많은 내용을 알아보려면 nice 맨 페이지를 참고하십시오:

출력 동작
The NOCOLOR variable, which defaults to, defines if Portage should disable the use of colored output.