Difference between revisions of "DISTDIR"

From Gentoo Wiki
Jump to:navigation Jump to:search
(Use See also for eclean)
Line 3: Line 3:
 
<translate>
 
<translate>
 
<!--T:1-->
 
<!--T:1-->
<onlyinclude>The <var>DISTDIR</var> variable [[Article description::defines the location where Portage will store the downloaded source code archives]]. Its value defaults to {{Path|[[:/var/cache/distfiles]]}}.
+
<onlyinclude>The <var>DISTDIR</var> variable <noinclude>[[Article description::</noinclude>defines the location where Portage will store the downloaded source code archives<noinclude>]]</noinclude>. Its value defaults to {{Path|[[:/var/cache/distfiles]]}}.
  
 
<!--T:2-->
 
<!--T:2-->

Revision as of 17:16, 10 June 2019

The DISTDIR variable defines the location where Portage will store the downloaded source code archives. Its value defaults to /var/cache/distfiles.

This location, which is also often referred to as the distfiles location, will host the source code archives of all software installed (or attempted to install) on the system. This location is not automatically cleaned up, so users should consider using tools such as the eclean-dist command (which comes as part of the app-portage/gentoolkit package) to keep the storage used by this location under control. Read the Eclean article for more details.

Users can set the DISTDIR variable in /etc/portage/make.conf:

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

See also