Translations:/etc/portage/make.conf/80/zh-cn

From Gentoo Wiki
Jump to:navigation Jump to:search

DISTDIR变量定义了 Portage 将会把下载的源码存放到哪个路径。新安装完后的默认值是 /var/cache/distfiles。以前的默认值是 ${PORTDIR}/distfiles,它默认解析到 /usr/portage/distfiles

用户可以在/etc/portage/make.conf中设置DISTDIR变量:

Warning
Beware where you place your DISTDIR! Only trusted users should be granted write access to this location.


File integrity check and unpacking is not atomic operation, allowing for an attack where file is swapped in between possibly leading to compromise the system.
FILE /etc/portage/make.conf使用不同的DISTDIR位置
DISTDIR=/var/gentoo/distfiles

有关更多信息,请参阅 DISTDIR 文章。