Skip to content

Commit 4f854b4

Browse files
authored
Add JULIA_PKG_SERVER to Environment Variables in docs (#39603)
1 parent 99f98dd commit 4f854b4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Diff for: doc/src/manual/environment-variables.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,15 @@ The absolute path `REPL.find_hist_file()` of the REPL's history file. If
156156
$(DEPOT_PATH[1])/logs/repl_history.jl
157157
```
158158

159+
### `JULIA_PKG_SERVER`
160+
161+
Used by `Pkg.jl`, for downloading packages and updating the registry. By default, `Pkg` uses `https://pkg.julialang.org` to
162+
fetch Julia packages. You can use this environment variable to select a different server. In addition, you can disable the use of the
163+
PkgServer protocol, and instead access the packages directly from their hosts (GitHub, GitLab, etc.) by setting:
164+
```
165+
export JULIA_PKG_SERVER=""
166+
```
167+
159168
## External applications
160169

161170
### `JULIA_SHELL`
@@ -340,4 +349,3 @@ On debug builds of Julia this is always enabled. Recommended to use with `-g 2`.
340349

341350
Arguments to be passed to the LLVM backend.
342351

343-

0 commit comments

Comments
 (0)