DISTDIR

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

Die Variable DISTDIR noinclude>definiert den Ort im Dateisystem, an dem Portage die heruntergeladenen Quelltextarchive ablegt. Der Standardwert auf neuen Installationen ist /var/cache/distfiles. Zuvor war der Standardwert ${PORTDIR}/distfiles, der standardmäßig in /usr/portage/distfiles aufgelöst wurde.

Dieses Verzeichnis, welches oft auch distfiles genannt wird, enthält alle jemals installierten Quelltext-Pakete. Darunter auch jene, die nicht installiert wurden, deren Download aber erfolgreich verlief. Dieser Ort wird nicht automatisch aufgeräumt, es wird deshalb empfohlen, Werkzeuge wie eclean-dist (Ein Bestandteil von app-portage/gentoolkit) zu installieren, um den Speicherplatzverbrauch zu begrenzen. Siehe den Eclean Artikel für mehr Informationen.

Benutzer können die Variable DISTDIR in /etc/portage/make.conf setzen:

DATEI /etc/portage/make.confVerwendung eines anderen DISTDIR-Speicherorts
DISTDIR=/var/gentoo/distfiles

Archivquelle

To download source code archives, Portage will download files from servers defined in the GENTOO_MIRRORS variable 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.

Umgehung von Gentoo-Mirrors

Warnung
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.

Um die Quellarchive unter Umgehung der Gentoo-Mirrors herunterzuladen, setzen Sie die Variable GENTOO_MIRROS von der Befehlszeile aus auf einen leeren Wert. Zum Beispiel:

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

Siehe auch