Skip to content

Commit a7dbaad

Browse files
ranochaKristofferC
authored andcommitted
Document environment variable JULIA_PKG_PRESERVE_TIERED_INSTALLED (#52362)
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)
1 parent d487a8d commit a7dbaad

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/src/manual/environment-variables.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,15 @@ If set to `true`, Pkg operations which use the git protocol will use an external
240240

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

243+
### [`JULIA_PKG_PRESERVE_TIERED_INSTALLED`](@id JULIA_PKG_PRESERVE_TIERED_INSTALLED)
244+
245+
Change the default package installation strategy to `Pkg.PRESERVE_TIERED_INSTALLED`
246+
to let the package manager try to install versions of packages while keeping as many
247+
versions of packages already installed as possible.
248+
249+
!!! compat "Julia 1.9"
250+
This only affects Julia 1.9 and above.
251+
243252
## Network transport
244253

245254
### `JULIA_NO_VERIFY_HOSTS` / `JULIA_SSL_NO_VERIFY_HOSTS` / `JULIA_SSH_NO_VERIFY_HOSTS` / `JULIA_ALWAYS_VERIFY_HOSTS`

0 commit comments

Comments
 (0)