Skip to content

Commit

Permalink
Document environment variable JULIA_PKG_PRESERVE_TIERED_INSTALLED (#5…
Browse files Browse the repository at this point in the history
…2362)

This is based on

```julia
julia> using Pkg

help?> Pkg.add
...
  │ Note
  │
  │  To change the default strategy to PRESERVE_TIERED_INSTALLED set the env var
  │  JULIA_PKG_PRESERVE_TIERED_INSTALLED to true.
...
```

I suggest to backport this so that it becomes available in the release
docs of Julia v1.9 and newer.

(cherry picked from commit 2c2ea3a)
  • Loading branch information
ranocha authored and KristofferC committed Dec 23, 2023
1 parent d487a8d commit a7dbaad
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/src/manual/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,15 @@ If set to `true`, Pkg operations which use the git protocol will use an external

The accuracy of the package resolver. This should be a positive integer, the default is `1`.

### [`JULIA_PKG_PRESERVE_TIERED_INSTALLED`](@id JULIA_PKG_PRESERVE_TIERED_INSTALLED)

Change the default package installation strategy to `Pkg.PRESERVE_TIERED_INSTALLED`
to let the package manager try to install versions of packages while keeping as many
versions of packages already installed as possible.

!!! compat "Julia 1.9"
This only affects Julia 1.9 and above.

## Network transport

### `JULIA_NO_VERIFY_HOSTS` / `JULIA_SSL_NO_VERIFY_HOSTS` / `JULIA_SSH_NO_VERIFY_HOSTS` / `JULIA_ALWAYS_VERIFY_HOSTS`
Expand Down

0 comments on commit a7dbaad

Please sign in to comment.