Gentoolkit/ko

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

Gentoolkit이란 무엇인가요?
Gentoo is a unique distribution and presents some complexities that simply do not exist for other distributions. As Gentoo developers and contributors discovered some of these complexities, they also wrote tools to help users and administrators work around them. Many of these tools have been contributed to the Gentoo project and are included in the package.

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

설치
젠투 꾸러미로 존재하므로, 설치는 간단하게 이머지 하면 됩니다.

문서 찾아보기
프로그램에 대한 문서는(맨 페이지가 아닌 다른 문서) 에 들어있습니다.

도입부
는 시스템의 꾸러미에 대한 쓸모있는 정보를 표시하는 도구입니다. 는 모듈 시스템을 기반으로 합니다. 모든 모듈은 약칭을 보유하고 있씁니다. 예를 들어 는  와 같습니다. 는 전역 옵션을 설명하며 약어 이름과 사용가능한 모든 모듈 목록을 보여줍니다. 명령을 사용하면 지정 모듈에 대한 도움말 화면을 보여줍니다. 명령은 모든 모듈과 옵션에 대한 자세한 설명을 제공하며 도움되는 예제를 제공하기도 합니다.

Below is a list of features that work over the majority of modules.

Like emerge, equery does not understand partial package names:

Unlike emerge, equery can accept shell-like globbing in the category and/or package name:

Most equery modules take multiple input:

A few modules also allow full regular expressions:

The next few sections in this document give a quick introduction to the different equery modules.

belongs(b) 옵션으로 파일을 가져온 꾸러미 찾기
can search for files matching a regular expression with the  option. The  option stops searching after it finds a match. Since no file on your system should be owned by two packages, this is a safe optimization.

changes(c) 옵션으로 ChangeLog 항목 살펴보기
lets the user view ChangeLog entries for a package version or range of versions. Imagine after running an emerge --sync Portage prints out a message saying it is going to be upgraded. To see what has changed this command can be used:

check(k) 옵션으로 꾸러며 무결성 확인하기
Sometimes it is useful to check a package's integrity. equery can verify MD5 sums as well as timestamps to indicate when a package might have been corrupted, replaced, or removed.

depends(d) 옵션으로 X 꾸러미에 의존하는 모든 패키지 목록 보기
Ever wonder why a certain package has been installed on the system? equery can tell which packages list it as a dependency with. Include indirect dependencies with the  option.

depgraph(g) 옵션으로 의존성 그래프 가져오기
is the opposite of. A package is passed and it will find the packages that package depends on (not the packages that depend on that package). When it finds a dependency, it will recursively search for all of that package's dependencies. Control how deep the tree gets with the  option.

USE 플래그를 설정했을 때 어떻게 가 직접 의존성을 가지고  가 간접 의존성을 지니는지 확인해보십시오.

files(f) 옵션으로 꾸러미에서 설치한 파일 목록 보기
equery</tt> can list all the files installed by an ebuild with the  module. Try  to get an easy to read directory layout. Use  to only find a certain type of file. For example, to find where executables were installed use, or to quickly find the configuration file location try.

hasuse(h) 옵션으로 꾸러미에서 지정 USE 플래그를 사용하는지 확인하기
can be used to find packages with a given USE flag. will not indicate if the flag is enabled, only if the ebuild lists it as an option. See the EXAMPLES section of  in the equery</tt> man page for more tip on getting this kind of information.

list(l) 옵션으로 꾸러미 조회하기
is a simple, yet powerful module to list packages that are installed, in the Portage tree or in an overlay.

The standard query will search installed packages for the given package name. Passing in  displays all packages in the set. In the leftmost field it is possible to see all the above packages are (nstalled) and from the  (ortage) tree. They are not masked (the second field is blank), and they are all installed in the default slot (0).

Use local options to look for packages in the Portage tree and overlays.

In this is it possible to see version 7.2.182 is installed and there are no versions available from an overlay. Users can see which versions are keyword masked by the  in the second field.

meta(m) 옵션으로 꾸러미 메타데이터 살펴보기
Each package in the Portage tree provides at least some metadata about its maintainer, herd, etc. Read about Gentoo Metadata. The amount of useful information depends on how much package maintainers decide to provide. With no options,  returns some basic useful information.

Maintainer's providing extra information about the package can be very useful:

size(s) 옵션으로 꾸러미 크기 확인하기
Ever been curious to find out how much space a specific package is occupying? Since a package could have its files over a number of directories, the usual du -hc command might not give the correct figure. Not to worry, equery</tt> to the rescue!

Using  prints the total space used in human-readable units and lists the total number of files the package has. To get the total size in bytes use.

uses(u) 옵션으로 패키지당 USE 플래그 목록 보기
equery</tt>'s  module can provide information about what USE flags are available for a specific package and which of those flags is currently enabled.

Here a number of USE flags are enabled in gstreamer's plugin meta-package, but it can be seen that there are other USE flags available. For more information on USE flags, please refer to the USE Flags chapter of the Gentoo Handbook.

which(w) 옵션으로 이빌드 경로 찾기
is a simple script to help users quickly find the file path to an ebuild. If an unversioned package name is passed using  it will return the path to the newest installable ebuild version. In other words, it would return the ebuild Portage would use if emerge example/package</tt> was typed. also accepts a versioned package to get the path to that ebuild.

Lastly, if none of the above features of equery</tt> have provided an answer, try using  to manually search an ebuild with programs like cat</tt>, less</tt> or grep</tt>:

도입부
euse</tt> is a tool to see, set and unset USE flags at various places. For more information on USE flags, please refer to the USE Flags. See euse -h for complete help and all options.

USE 플래그 보고 설정하고 설정 해제
The euse -a</tt> command reads the current active USE flags and displays them.

Similarly the euse -a -g</tt> command is used to view active global USE flags. The euse -a -l</tt> command does the same for active local USE flags. and  are suboptions to euse</tt> and need an option before them (like  ) to function correctly.

euse</tt> is able to set or unset USE flags. The commands used for this are euse -E flagname</tt> (enable a flag) and <tt>euse -D flagname</tt> (disable a flag).

USE 플래그 활성화는 다음과 같습니다:

The file looks like so after the command was ran:

Disabling the USE flag:

Again, the file after the command:

revdep-rebuild
This tool is Gentoo's Reverse Dependency rebuilder. It will scan the installed ebuilds to find packages that have become broken as a result of an upgrade of a package they depend on. It can emerge those packages for users automatically but it can also happen that a given package does not work with the currently installed dependencies, in which case you should upgrade the broken package to a more recent version. <tt>revdep-rebuild</tt> will pass flags to <tt>emerge</tt> which lets you use the  flag to see what is going to be emerged again before going any further.

To rebuild some packages run <tt>revdep-rebuild</tt> without the  flag and the listed packages will be emerged again.

glsa-check
<tt>glsa-check</tt> is mainly a test tool that keeps track of the various GLSA's (Gentoo Linux Security Advisory) and will eventually be integrated into <tt>emerge</tt> and <tt>equery</tt>.

eread
<tt>eread</tt> is a simple utility to display elog files produced by >=. The saving of elog files can be enabled by setting a couple of variables in :

Once elog has been set up to satisfaction, run <tt>eread</tt> to view the log files.

Select a number and the file will be displayed using the paging program specified in the PAGER environment variable. If PAGER is not set, it will use <tt>less</tt>. The PAGER environmental variable can be set using <tt>eselect</tt> (module ).

After displaying the elog item, you will be prompted if you want to delete the file.

eclean
<tt>eclean</tt> is a tool to remove old source files and old binary packages from the system.

Building and installing packages, the source files are downloaded and preserved in, usually. This can accumulate several gigabytes of material over time if it is not cleaned periodically. Users should run <tt>eclean-dist</tt> to clean source files from.

It is possible to create archives of installed packages by using <tt>quickpg</tt> or FEATURES="buildpkg". These archived packages are kept in PKGDIR, usually. When they are no longer needed, or if they are too old, <tt>eclean-pkg</tt> can be ran to remove them from. It is a good way to ensure that any binary packages on the system are only the latest versions.

For more information on <tt>eclean</tt> and tips on maintaining a cruft-free system, please read man eclean or check the eclean article.