# Custom location for julia, using juliaup

**URL:** <https://discourse.julialang.org/t/custom-location-for-julia-using-juliaup/114724>\
**Category:** General Usage\
**Tags:** question, juliaup\
**Created:** [May 25, 2024, 3:24pm UTC](https://discourse.julialang.org/t/custom-location-for-julia-using-juliaup/114724 "2024-05-25T15:24:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sfranchel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sfranchel/32/209504_2.png) [@sfranchel](https://discourse.julialang.org/u/sfranchel)\
**Post date:** [May 25, 2024, 3:24pm UTC](https://discourse.julialang.org/t/custom-location-for-julia-using-juliaup/114724/1 "2024-05-25T15:24:14Z")

</div>

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`](https://github.com/JuliaLang/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`:

```bash
[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:

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

```

I see only:

```bash
[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!

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [May 25, 2024, 4:35pm UTC](https://discourse.julialang.org/t/custom-location-for-julia-using-juliaup/114724/2 "2024-05-25T16:35:09Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![sfranchel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sfranchel/32/209504_2.png) [@sfranchel](https://discourse.julialang.org/u/sfranchel)\
**Post date:** [May 25, 2024, 4:53pm UTC](https://discourse.julialang.org/t/custom-location-for-julia-using-juliaup/114724/3 "2024-05-25T16:53:54Z")

</div>

> [@mkitti](#):
>
> `JULIAUP_DEPOT_PATH`

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 🙂
