CONFIG_PROTECT

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

La variabile CONFIG_PROTECT contiene una lista (i cui elementi sono separati da spazi) di directory dove Portage non sovrascriverà nessun file "alla cieca", ma tratterà questi come configurazioni, permettendo all'utente di controllare manualmente se le modifiche siano necessarie e valide oppure no. Le sottodirectories delle directories elencate possono essere escluse tramite la variabile CONFIG_PROTECT_MASK.

A current list of presently protected locations can be displayed with portageq:

user $portageq envvar CONFIG_PROTECT
/etc /usr/share/config /usr/share/gnupg/qualified.txt

Using portageq is a short hand alternative to running a regular expression search on verbose, informational output from the emerge command:

user $emerge --verbose --info | grep -E '^CONFIG_PROTECT='
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"

Files or subdirectories defined within the CONFIG_PROTECT can be excluded from protection through the CONFIG_PROTECT_MASK variable. Masking is useful when a parent directory should be protected, but a certain child directory beneath it.

La variabile ha un'impostazione predefinita gestita dall'installazione di Portage e contiene entries dal profilo dell'utente. Può essere estesa dall'ambiente di sistema (il quale è spesso utilizzato dalle applicazioni che aggiornano la variabile attraverso il loro file /etc/env.d) e dalle impostazioni dell'utente /etc/portage/make.conf.

FILE /etc/portage/make.confExample CONFIG_PROTECT use in make.conf
CONFIG_PROTECT="/var/bind"

Per maggiori informazioni, vedere la sezione Environment variables nell'Handbook di Gentoo.

See also

  • CONFIG_PROTECT_MASK — contains a list of files or subdirectories which will be excluded from the overwrite protection offered by the CONFIG_PROTECT variable.
  • savedconfig — a USE flag that preserves the saved configuration files upon package updates.
  • /etc/portage/make.conf — usato per modificare l'ambiente di Portage a livello globale.