This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.

Please visit our production wiki at https://wiki.gentoo.org

DISTDIR

From Gentoo Wiki (test)
Jump to:navigation Jump to:search
This page is a translated version of the page DISTDIR and the translation is 75% complete.

DISTDIR变量定义了Portage将会把下载的源码存放到哪个路径。默认值是/usr/portage/distfiles

这个路径,通常也被称作"distfiles"路径,将会存放系统上所有曾经安装过(或者试图安装的)软件的源代码文件。这个路径不会被自动清理,为了保持这个目录的容量,用户应该考虑使用一些工具例如 eclean-dist命令 ( app-portage/gentoolkit的一部分)。阅读Eclean文章 了解更多细节。

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

FILE /etc/portage/make.confUsing a different DISTDIR location
DISTDIR=/var/gentoo/distfiles

参考