Gentoolkit/ko

From Gentoo Wiki
Jump to:navigation Jump to:search
This page is a translated version of the page Gentoolkit and the translation is 22% complete.
Outdated translations are marked like this.
Not to be confused with Genkernel.
Resources

Gentoolkit은 젠투 시스템을 쉽게 관리할 수 있도록 하는 도구 모음입니다. 이 문서에서는 Gentoolkit에 있는 몇가지 도구에 대한 기본 내용을 다룹니다.

젠투는 다른 배포판에는 단순히 나타나지 않는 복잡성이 있는 유일한 배포판입니다. 젠투 개발자 및 기여자는 이러한 복잡석을 찾아내는대로 도구를 작성하여 복잡한 환경을 사용하는 사용자 및 관리자를 돕습니다. 대부분 이러한 도구는 젠투 프로젝트에 기여하며 app-portage/gentoolkit 꾸러미에 있습니다.

Gentoolkit에는 꾸러미를 관리하는데 돕고 시스템에서 어떤 일이 일어나고 있는지 지켜볼 수 있는 쓸모있는 여러가지 도구 전체가 들어있습니다. 대부분의 사용자는 - 시스템을 자주 업데이트 하는 일부 - gentoolkit을 설치하면 여러가지 이득을 취할 수 있습니다.

The gentoolkit commands have man pages, type "man <command>" for each command for full documentation.

설치

USE flags

USE flags for app-portage/gentoolkit Collection of administration scripts for Gentoo

test Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled independently)

Emerge

Install gentoolkit:

root #emerge --ask app-portage/gentoolkit

eclean

eclean 은 오래된 소스 파일과 오래된 라이브러리 꾸러미를 시스템에서 제거하는 도구입니다.

꾸러미를 빌드하고 설치할 때, 소스 파일은 보통 /usr/portage/distfiles 경로값을 지니는 DISTDIR에 다운로드하고 유지합니다. 주기적으로 비워두지 않으면 이 경로에는 오랜 시간에 걸쳐 수 기가바이트 정도 쌓입니다. DISTDIR에서 소스 파일을 지우려면 eclean-dist를 실행해야합니다.

quickpkg 또는 FEATURES="buildpkg"로 설치한 꾸러미의 아카이브를 만들 수 있습니다. 보관한 꾸러미는 /usr/portage/packages로 설정한 PKGDIR에 넣습니다. 더 이상 필요하지 않거나 오래됐다면, eclean-pkg 명령으로 PKGDIR 에서 꾸러미를 제거할 수 있습니다. 최신 버전만 시스템에 바이너리 꾸러미로 남아있는지 확인해보시는게 좋습니다.

eclean에 대한 더 많은 정보와 불편함이 없는 시스템을 유지하는 요령을 알아보려면 man eclean 을 살펴보시거나 eclean 게시글을 확인하십시오.

epkginfo

epkginfo is a tool used to display package metadata information. It is a shortcut to using the equery meta command.

equery

equery is a tool to make several common Portage operations simpler. Among other operations, it can display package dependencies, metadata, and installed files.

eread

eread 는 >=portage-2.1에서 만드는 elog 파일을 표시하는 간단한 유틸리티입니다. elog 파일의 저장은 /etc/portage/make.conf의 몇가지 변수를 설정해서 활성화할 수 있습니다:

파일 make.confelog 활성화
PORTAGE_ELOG_CLASSES="log"
PORTAGE_ELOG_SYSTEM="save"
참고
이 명령은 elog 메시지를 저장하는 방법일 뿐입니다. 포티지의 elog 시스템 동작을 알아보려면 포티지 핸드북의 적절한 페이지를 참고하십시오.

원하는대로 elog를 설정하고 나면 eread를 실행하여 로그 파일을 보십시오.

user $eread
This is a list of portage log items. Choose a number to view that file or type
q to quit.
  
1) app-portage:gentoolkit-0.2.4_pre2:20070320-000256.log
2) app-portage:gentoolkit-0.2.4_pre2:20070320-000258.log
3) app-portage:gentoolkit-0.2.4_pre2:20070320-000319.log
4) app-portage:gentoolkit-0.2.3:20070320-000408.log
Choice?

번호를 선택하시면 나타난 페이징 프로프램을 PAGER 환경 변수에 설정합니다. PAGER를 설정하지 않으면 less를 사용합니다. PAGER 환경 변수는 eselect 명령(pager 모듈)으로 설정할 수 있습니다.

elog 항목을 표시한 후에는 파일을 삭제할지 물어봅니다.

eshowkw

Display keywords for specified package or for package that is in pwd.

To show keywords for a specific package, indicate that package on the command line, for example:

root #eshowkw gentoo-sources
Keywords for sys-kernel/gentoo-sources:
          |                               |   u          |  
          | a   a     p s     l r   a     |   n          |  
          | m   r h   p p   i o i s l m m | e u s        | r
          | d a m p p c a x a o s 3 p 6 i | a s l        | e
          | 6 r 6 p p 6 r 8 6 n c 9 h 8 p | p e o        | p
          | 4 m 4 a c 4 c 6 4 g v 0 a k s | i d t        | o
----------+-------------------------------+--------------+-------
 4.14.302 | o o o o o o + o o o o o o o o | 8 o 4.14.302 | gentoo
----------+-------------------------------+--------------+-------
 4.14.305 | + + + ~ + + ~ + ~ o o ~ ~ ~ ~ | 8 o 4.14.305 | gentoo
----------+-------------------------------+--------------+-------
 4.14.309 | + ~ ~ + ~ + ~ + ~ o ~ ~ ~ ~ ~ | 8 o 4.14.309 | gentoo
----------+-------------------------------+--------------+-------
 4.14.311 | ~ ~ ~ ~ ~ ~ ~ ~ ~ o ~ ~ ~ ~ ~ | 8 o 4.14.311 | gentoo
----------+-------------------------------+--------------+-------
 4.14.312 | ~ ~ ~ ~ ~ ~ ~ ~ ~ o ~ ~ ~ ~ ~ | 8 o 4.14.312 | gentoo

euse

euse provides functionality to set (disable/enable) and obtain information about USE flags in make.conf, without having to edit the file directly.

revdep-rebuild

중요
It is not necessary to run this tool for general use. The portage FEATURE preserve-libs makes the original purpose obsolete. The primary purpose of this tool is now ABI changes for specific libraries when instructions are provided by developers.

젠투의 의존성 역추적 빌더입니다. 설치한 ebuild를 검색하여 의존 관계에 있는 꾸러미의 업그레이드 여부, 깨짐 여부를 찾습니다. 사용자의 요청에 따라 꾸러미를 자동으로 emerge 할 수 있지만, 이 경우 깨진 꾸러미를 최신 버전으로 업그레이드해야합니다. revdep-rebuild--pretend 플래그를 사용하여 다시 이머지할 꾸러미를 여러분이 살펴보도록 하는 emerge에 플래그를 전달합니다.

revdep-rebuild will pass flags to emerge which lets the --pretend flag pass through, to see what is going to be emerged again before going any further.

root #revdep-rebuild -p
 * Configuring search environment for revdep-rebuild
  
 * Checking reverse dependencies
 * Packages containing binaries and libraries broken by a package update
 * will be emerged.
  
 * Collecting system binaries and libraries
 * Generated new 1_files.rr
 * Collecting complete LD_LIBRARY_PATH
 * Generated new 2_ldpath.rr
 * Checking dynamic linking consistency
[ 48% ]  *   broken /usr/lib/gstreamer-0.10/libgsttaglib.la (requires /usr/lib/libtag.la)
[ 64% ]  *   broken /usr/lib/libgdkglext-x11-1.0.la (requires /usr/lib/libGLU.la)
[ 67% ]  *   broken /usr/lib/libgtkglext-x11-1.0.la (requires /usr/lib/libGLU.la)
[ 85% ]  *   broken /usr/lib/python2.6/site-packages/gtk-2.0/gtk/gdkgl/_gdkgl.la (requires /usr/lib/libGLU.la)
 *   broken /usr/lib/python2.6/site-packages/gtk-2.0/gtk/gtkgl/_gtkgl.la (requires /usr/lib/libGLU.la)
[ 97% ]  *   broken /usr/qt/3/lib/libqt-mt.la (requires -lpng)
[ 100% ]
 * Generated new 3_broken.rr
 * Assigning files to packages
 *   /usr/lib/gstreamer-0.10/libgsttaglib.la -> media-plugins/gst-plugins-taglib
 *   /usr/lib/libgdkglext-x11-1.0.la -> x11-libs/gtkglext
 *   /usr/lib/libgtkglext-x11-1.0.la -> x11-libs/gtkglext
 *   /usr/lib/python2.6/site-packages/gtk-2.0/gtk/gdkgl/_gdkgl.la -> dev-python/pygtkglext
 *   /usr/lib/python2.6/site-packages/gtk-2.0/gtk/gtkgl/_gtkgl.la -> dev-python/pygtkglext
 *   /usr/qt/3/lib/libqt-mt.la -> x11-libs/qt
 * Generated new 4_raw.rr and 4_owners.rr
 * Cleaning list of packages to rebuild
 * Generated new 4_pkgs.rr
 * Assigning packages to ebuilds
 * Generated new 4_ebuilds.rr
 * Evaluating package order
 * Generated new 5_order.rr
 * All prepared. Starting rebuild
emerge --oneshot --pretend  dev-python/pygtkglext:0
media-plugins/gst-plugins-taglib:0.10
x11-libs/gtkglext:0
x11-libs/qt:3
  
These are the packages that would be merged, in order:
  
Calculating dependencies... done!
[ebuild   R   ] media-plugins/gst-plugins-taglib-0.10.17
[ebuild   R   ] x11-libs/gtkglext-1.2.0
[ebuild   R   ] x11-libs/qt-3.3.8b-r2
[ebuild   R   ] dev-python/pygtkglext-1.1.0
 * Now you can remove -p (or --pretend) from arguments and re-run revdep-rebuild.

일부 꾸러미를 다시 빌드하려면 -p 플래그를 뺀 상태에서 revdep-rebuild를 실행하십시오. 목록에 나타난 꾸러미를 다시 이머지합니다.

root #revdep-rebuild

Other tools

gentoolkit also provides other tools:

Name Description
ebump Ebuild revision bumper (more useful for developers).
enalyze Gentoo's installed packages analysis and repair tool. See man page, which states "CAUTION: This is beta software and is not yet feature complete".
imlate Displays candidates for keywords for an architecture (more useful for developers?).

See the man pages for each of these tools for more info.

추가 참조


This page is based on a document formerly found on our main website gentoo.org.
The following people contributed to the original document: Matt Butcher, John P. Davis, Erwin, Shyam Mani, Xavier Neys, Karl Trygve, José Luis Rivero, Joshua Saddler, Douglas Anderson
They are listed here because wiki history does not allow for any external attribution. If you edit the wiki article, please do not add yourself here; your contributions are recorded on each article's associated history page.