Custom location for julia, using juliaup

I’m trying to install julia in a remote shared server, but I have limited resources in the $HOME directory. I’m therefore trying to change the location for julia installation to a path with much more disk space.

The juliaup tool has a --path flag, which I thought was exactly for this use case. Instead, it currently sets only the path for some binaries, but the julia core libraries are still located in the ~/.julia/juliaup:

[me@myserver me] tree -L 2 ~/.julia/juliaup/
/my/home/dir/.julia/juliaup/
├── julia-1.10.3+0.x64.linux.gnu
│   ├── bin
│   ├── etc
│   ├── include
│   ├── lib
│   ├── libexec
│   ├── LICENSE.md
│   └── share
└── juliaup.json

while in the path specified with the command:

curl -fsSL https://install.julialang.org | sh -s -- -p /huge/disk/.julia

I see only:

[me@myserver me]$ tree /huge/disk/.julia/
.julia/
├── bin
│   ├── julia -> /huge/disk/.julia/bin/julialauncher
│   ├── julialauncher
│   └── juliaup
└── juliaupself.json

Is this really the supposed behavior of the --path/-p flag? Is there another way to instead put the relatively large julia-1.10.3+0.x64.linux.gnu folder to the specified location?

Thanks in advance for any help!

1 Like

You need to set the JULIA_DEPOT_PATH and JULIAUP_DEPOT_PATH environment variables.

If you need more help wjth environment variables, please state your shell environment.

5 Likes

Thanks a lot @mkitti, it worked!

I had the first one, but completely missed the second one, setting correctly JULIAUP_DEPOT_PATH sets everything in the right place :slight_smile: