Q applets/ja

QアプレットはCで書かれた小さくて素早い、portageのヘルパーツールです. このガイドは、 パッケージで提供されているこれらヘルパーツールの基本的な使い方を説明します.

The package is a collection of very fast utilities written in C, which are meant to offer a faster but more limited alternative to their  counterparts. Please note that q applets are not meant to replace gentoolkit. The utilities may be much more efficient than the equivalent ones from gentoolkit and might be better suited to be used in scripts that need to call Portage repeatedly, but they do not offer the same functionality. q applets do not consider eclasses and do not provide tools like revdep-rebuild or glsa-check.

Emerge
Q アップレットをインストールします:

Configuration
アップレットを使用する前に、ルート権限でキャッシュを初期化します:

Invocation
The complete list of applications that are provided by can be listed by typing man q or q --help. Please read the man page for each utility described, as this guide is only meant to be a short reference for the most useful functions and does not include all the information about each application.

To see the available applets with a short description of their function, use q --help :

あるファイルが含まれているパッケージを見つける方法
The qfile command finds the package to which a file belongs:

パッケージの完全性確認
To check the MD5 sums or modification times of the files installed by some package, use the qcheck application:

もちろん、インストール後に変更された全てのファイルがここで報告されます. インストール後に手動で編集された設定ファイルが報告されても、心配はありません.

あるパッケージに依存しているパッケージの一覧表示
Of course there's also an application which allows to list all the packages which depend on some package. This is done using qdepends. Use the  option to show all the ,  , and   information for a package.

あるebuildに属するファイルの一覧表示
The qlist command gives a list of all files that belong to an ebuild.

あるUSEフラグを使っているパッケージの検索
Listing used USE flags is done with quse, which must be run with root permissions. It may take some time to first create/update the ebuild cache.

パッケージサイズの検索
To show the size of a package, use the qsize application:

Portageツリーの検索
One of the most powerful tools of is qsearch</tt>. This tool allows to search the Portage tree much faster than using the emerge -s</tt> command.

いくつか使い方の例を挙げます:

The homepage of packages can be queried using the  option:

他の例として、Jabberクライアントについて見てみましょう:

emergeログからの情報抽出
There is also a tool that allows to extract useful information from the file. It is called qlop</tt> and it can be useful when package compilation times need to be estimated or to compare build times with other systems. It also allows to check what's compiling at the moment and how long it will probably take - which is handy when working in the console and don't have any other means to check it.

のビルド作業がおよそどのくらいかかるか知りたいときには:

いま何がemergeされていて、その作業に既にどのくらいの時間が経過したのか、見てみましょう:

参考

 * Gentoolkit