# How does one set up a centralized Julia installation?

**URL:** <https://discourse.julialang.org/t/how-does-one-set-up-a-centralized-julia-installation/13922>\
**Category:** General Usage\
**Tags:** package, packages, package-manager, installation\
**Created:** [August 23, 2018, 8:23am UTC](https://discourse.julialang.org/t/how-does-one-set-up-a-centralized-julia-installation/13922 "2018-08-23T08:23:42Z")\
**Posts on this page:** 5\
**Page:** 3

<div class="post-metadata">

**Author:** ![sloede](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sloede/32/44787_2.png) [@sloede](https://discourse.julialang.org/u/sloede)\
**Post date:** [June 15, 2023, 12:40pm UTC](https://discourse.julialang.org/t/how-does-one-set-up-a-centralized-julia-installation/13922/42 "2023-06-15T12:40:55Z")

</div>

Note that **installing** weakdeps is IMHO not enough, they also have to be **loaded** , afaiu. Thus, I’m not sure if a central Julia installation will help you here.

---

<div class="post-metadata">

**Author:** ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Post date:** [July 4, 2023, 8:46am UTC](https://discourse.julialang.org/t/how-does-one-set-up-a-centralized-julia-installation/13922/43 "2023-07-04T08:46:25Z")

</div>

Hi all, I just started creating these notes - so they’re obviously WIP - but maybe they are helpful:

[https://juliahpc.github.io/JuliaOnHPCClusters/sysadmin\_julia/](https://juliahpc.github.io/JuliaOnHPCClusters/sysadmin_julia/)

(Feel free to ask questions, file issues, and/or make PRs!)

Note that lots of information that has been shared in this threads (thanks!) is unfortunately outdated. I’ll try to keep the notes linked above up to date (again, feel free to help me!).

---

<div class="post-metadata">

**Author:** ![Spuriosity1](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@Spuriosity1](https://discourse.julialang.org/u/Spuriosity1)\
**Post date:** [April 23, 2024, 9:37pm UTC](https://discourse.julialang.org/t/how-does-one-set-up-a-centralized-julia-installation/13922/44 "2024-04-23T21:37:57Z")

</div>

Reopening this thread since there still doesn’t seem to be a canonical solution that works for shared computing systems.

We eventually managed to set up a single, centralised depot with some common, large dependencies (e.g. Plots.jl) that a user can install over the top of:

```julia
export JULIA_DEPOT_PATH="${HOME}/.julia:/central/readonly/depot/Apps/Julia/julia-1.10.2/local/share/julia"
export JULIA_PROJECT="${HOME}/.julia/environments/v1.10"
export JULIA_LOAD_PATH="/central/readonly/depot/Apps/Julia/julia-1.10.2/local/share/julia/environments/v1.10:"

```

Note the trailing colon on the last line.

This seems to be working with Julia 1.10.3. I’m not sure how this will behave when the central depot’s packages become outdated.

---

<div class="post-metadata">

**Author:** ![greatpet](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Post date:** [April 23, 2024, 10:06pm UTC](https://discourse.julialang.org/t/how-does-one-set-up-a-centralized-julia-installation/13922/45 "2024-04-23T22:06:47Z")

</div>

> [@Spuriosity1](#):
>
> I’m not sure how this will behave when the central depot’s packages become outdated.

Since you’ve specified `$HOME/.julia` as the first entry in the depot path, when a user uses `Pkg` to install a new package that is not already stored in the central depot, it will get installed in the user’s own `$HOME/.julia`.

---

<div class="post-metadata">

**Author:** ![samo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/samo/32/35398_2.png) [@samo](https://discourse.julialang.org/u/samo)\
**Post date:** [September 18, 2024, 3:08pm UTC](https://discourse.julialang.org/t/how-does-one-set-up-a-centralized-julia-installation/13922/47 "2024-09-18T15:08:53Z")

</div>

> [@JUHPC: HPC setup for Juliaup, Julia and some HPC key packages](https://discourse.julialang.org/t/juhpc-hpc-setup-for-juliaup-julia-and-some-hpc-key-packages/119556):
>
> @channel Dear Julia HPC community! After an odyssey through stacked environments with pre-installed packages and other unsatisfying solutions, the Julia HPC community is now able to do a good Julia HPC setup. Yet, the effort got quite dispersed with every HPC site setting up and maintaining its own solution. Today, I would like to invite everyone to continue on a single common path, meaning to develop and maintain a solution for a Julia HPC setup jointly as the Julia HPC community. I’m happy …

[Previous page](https://discourse.julialang.org/t/how-does-one-set-up-a-centralized-julia-installation/13922.md?page=2)
