ACCEPT KEYWORDS/zh-cn

ACCEPT_KEYWORDS 变量告诉包管理器哪个 ebuild 的 KEYWORDS 允许接受.

变量在哪里设置？
The variable is usually set through the Gentoo profile but can be overruled in the users' file, per-package in the  file/directory or even on the command line.

稳定与不稳定的 keywords
The default value of most profiles' ACCEPT_KEYWORDS variable is the architecture itself, like  or. In these cases, the package manager will only accept ebuilds whose KEYWORDS variable contains this architecture. If the user wants to be able to install and work with ebuilds that are not considered production-ready yet, they can add the same architecture but with the  prefix to it, like so:

One should not specify the stable keyword when adding the testing keyword  because ACCEPT_KEYWORDS is an incremental variable.

如果不是进行系统全局设置，那么可以在 文件或目录中对每个包进行单独设置：

In addition to the normal values from ACCEPT_KEYWORDS, supports three special tokens :


 * — Package is visible if it is stable on any architecture.
 * — Package is visible if it is in testing on any architecture.
 * — Package is always visible ( KEYWORDS are ignored completely).

The last choice is useful for live package versions (which are svn/git/mercurial/… versions of packages, supported through what is called a live ebuild and which don't have a KEYWORDS variable).

另请参阅

 * Knowledge Base:Accepting a keyword for a single package