Equery/ko

는 여러 일반 포티지 동작을 단순하게 만든 도구입니다. 다른 동작을 수행하며, 꾸러미 의존성, 메타데이터, 설치 파일을 보여줄 수 있습니다.

Emerge
간단하게:

는 꾸러미로 설치하는 도구모음의 일부입니다. 또는 다른 도구 설치 정보를 알아보려면 Gentoolkit 게시글 을 찾아보십시오.

도입부
is a tool that displays useful information about the installed packages on the system. is based on a system of modules. Every module has a shorthand name. For example, running is the same as running. Invoking the  option  will output global options and list all available modules and their shorthand names. Adding a module name to the end will display the help screen for that specific module. Lastly, executing will also provide a detailed explanation of all available modules and options along with some useful examples.

다음은 모듈이 주로 하는 역할의 기능을 보여줍니다.

Like, does not understand partial package names:

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

대부분의 equery 모듈은 여러 입력 값을 가집니다:

몇가지 모듈은 완전한 정규 표현식을 허용합니다:

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

기능
To see a list of all equery's capabilities, simply run it without arguments:

별칭
A common approach to working with is to create aliases. When using bash these can usually be placed in the file:

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.

A short version of   can also be used. For example, to list what package belongs to:

changes (c) 로 ChangeLog 항목 보기
lets the user view ChangeLog entries for a package version or range of versions. Imagine after running an 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. can verify MD5 sums as well as timestamps to indicate when a package might have been corrupted, replaced, or removed.

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

두번째 예제에서는 udev에 직접 의존하는 모든 꾸러미를 보여줍니다:

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

Notice how  is a direct dependency and   is an indirect dependency if the   USE is set?

files (f) 옵션으로 꾸러미로 설치한 파일 보기
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.

Another example, to list all files installed by ncmpcpp:

Descriptions of other modules and additional command line flags can be found in the equery man page ( man equery ).

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  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. The amount of useful information depends on how much package maintainers decide to provide. With no options,  returns some basic useful information.

Some maintainers provide extra information about the package which 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 command might not give the correct figure. Not to worry, 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 플래그 보여주기
'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) 옵션으로 ebuild 경로 찾아보기
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 was typed. also accepts a versioned package to get the path to that ebuild.

Lastly, if none of the above features of have provided an answer, try using   to manually search an ebuild with programs like,  or :

추가 참조

 * Q applets - A collection of small and fast Portage helper tools written in C.
 * eix - A set of utilities for searching and diffing the local Portage tree and overlays using a binary cache.
 * Gentoolkit - A suite of tools to ease the administration of a Gentoo system.