DISTDIR

From Gentoo Wiki
Jump to:navigation Jump to:search
This page is a translated version of the page DISTDIR and the translation is 38% complete.
Outdated translations are marked like this.
Other languages:
Deutsch • ‎English • ‎Türkçe • ‎español • ‎français • ‎italiano • ‎русский • ‎українська • ‎தமிழ் • ‎中文(中国大陆)‎ • ‎日本語 • ‎한국어

La variable DISTDIR define la ubicación donde Portage almacenará los archivos de código de fuente descargados. Su valor por defecto es /usr/portage/distfiles.

En esta ubicación, también llamada a menudo como el directorio distfiles, se reúnen los archivos de código fuente de todo software instalado (o que se haya intentado instalar) en el sistema. Esta ubicación no es limpiada automáticamente por ningún programa, así que, a los usuarios, podría interesarles utilizar herramientas como la orden eclean-dist (que forma parte del paquete app-portage/gentoolkit) para tener bajo control la cantidad de la capacidad de almacenamiento que dedica a esta ubicación. Véase el artículo sobre Eclean para más detalles.

Los usuarios pueden dar valor a la variable DISTDIR en /etc/portage/make.conf.

ARCHIVO /etc/portage/make.confUtilizar una localización DISTDIR diferente
DISTDIR=/var/gentoo/distfiles

Source of archives

To download source code archives, Portage will download files from servers defined in the GENTOO_MIRRORS first (to alleviate load on upstream project resources and for other reasons). The SRC_URI variable in individual ebuilds, points to the package's original source files, which is originally downloaded by the ebuild maintainers during ebuild creation and development.

Part of ebuild development is the creation of Manifest files, which ensure the upstream source files are not modified from the time they are downloaded by the ebuild developer, distributed to Gentoo's mirror system, then to their destination on the endpoint system.

Bypassing Gentoo mirrors

Advertencia
Over time, upstream projects who host package source files will move their project's source URLs to new locations. In some instances, upstream projects will discontinue development, which eventually leads to the inability to obtain software sources from upstream locations.

Due to the Gentoo mirroring system, ebuild maintainers can still 'support' ebuilds with deprecated upstream sources. This allows software to be gracefully phased out of the gentoo:: ebuild repository, which is part of a good user experience for the Gentoo community. For these reasons and others, users who choose to bypass the Gentoo mirror system should expect unreliable downloads for source files.

To download the source archives bypassing Gentoo mirrors, set the GENTOO_MIRRORS variable to an empty value from the command-line. For example:

root #GENTOO_MIRRORS="" emerge --ask www-client/firefox

Ver también