Próximo: , Anterior: , Acima: Substitutos   [Conteúdo][Índice]

5.3.2 Autorização de servidor substituto

To allow Guix to download substitutes from, or a mirror, you must add the relevant public key to the access control list (ACL) of archive imports, using the guix archive command (veja Invocando guix archive). Doing so implies that you trust the substitute server to not be compromised and to serve genuine substitutes.

Nota: If you are using Guix System, you can skip this section: Guix System authorizes substitutes from and by default.

The public keys for each of the project maintained substitute servers are installed along with Guix, in prefix/share/guix/, where prefix is the installation prefix of Guix. If you installed Guix from source, make sure you checked the GPG signature of guix-a7aa7a8.tar.gz, which contains this public key file. Then, you can run something like this:

# guix archive --authorize < prefix/share/guix/
# guix archive --authorize < prefix/share/guix/

Once this is in place, the output of a command like guix build should change from something like:

$ guix build emacs --dry-run
The following derivations would be built:

to something like:

$ guix build emacs --dry-run
112.3 MB would be downloaded:

The text changed from “The following derivations would be built” to “112.3 MB would be downloaded”. This indicates that substitutes from the configured substitute servers are usable and will be downloaded, when possible, for future builds.

The substitute mechanism can be disabled globally by running guix-daemon with --no-substitutes (veja Invocando guix-daemon). It can also be disabled temporarily by passing the --no-substitutes option to guix package, guix build, and other command-line tools.

Próximo: Getting Substitutes from Other Servers, Anterior: Official Substitute Servers, Acima: Substitutos   [Conteúdo][Índice]