如何禁用portage LICENSE检查

Eri*_*rik 4 gentoo licenses emerge

每当我安装带有 EULA 的软件包时,portage 都会要求我将其添加到package.license

The following license changes are necessary to proceed:
 (see "package.license" in the portage(5) man page for more details)
#required by chrome-binary-plugins (argument)
>=www-plugins/chrome-binary-plugins-9999 google-chrome
#required by google-chrome (argument)
>=www-client/google-chrome-26.0.1410.40_beta189199:beta google-chrome
Run Code Online (Sandbox Code Playgroud)

由于我无论如何都没有阅读许可证并且 portage 甚至没有要求我这样做,我想全局禁用此检查。怎么做?

Eri*_*rik 12

portage 接受哪些许可证由 中的ACCEPT_LICENSE变量控制make.conf。此变量package.licenseUSEto package.useACCEPT_KEYWORDStopackage.keywords等相同。默认情况下,此变量设置为@FREE,表示“仅接受FREE集合中的所有许可证”。该集合包含需要用户接受的所有许可证。为了能够在没有附加许可证相关提示的情况下安装所有软件包,只需将以下行添加到/etc/portage/make.conf

ACCEPT_LICENSE="*"
Run Code Online (Sandbox Code Playgroud)

相反,您也可以使用 屏蔽所有非免费软件包ACCEPT_LICENSE="@FREE",或选择您喜欢的任何其他许可证组合。见/usr/portage/profiles/license_groups详细信息

  • `ACCEPT_LICENSE="@FREE"` 提示 +1 :) (2认同)