DISTDIR

From Gentoo Wiki
Jump to:navigation Jump to:search
This page is a translated version of the page DISTDIR and the translation is 6% complete.
Outdated translations are marked like this.

Змінна DISTDIR визначає положення, де Portage буде зберігати викачані архіви з вихідними кодами. За замовчуванням це каталог /usr/portage/distfiles.

Цей каталог, який часто називається каталогом "distfiles", буде зберігати архіви вихідних кодів всіх програм встановлених (або які намагалися встановити) в системі. Однак даний каталог не очищається автоматично, тому користувачі повинні використовувати спеціальні програми, наприклад команда eclean-dist (яка поставляється як частина пакету app-portage/gentoolkit), щоб розмір даного каталогу не вийшов з-під контролю. Для більш детальної інформації прочитайте статтю Eclean.

Користувачі можуть встановити змінну DISTDIR в /etc/portage/make.conf

Попередження
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.confUsing a different DISTDIR location
DISTDIR=/var/gentoo/distfiles

Source of archives

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.

Bypassing Gentoo mirrors

Попередження
{{{1}}}

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

Дивіться також