# How to change .julia folder location

**URL:** <https://discourse.julialang.org/t/how-to-change-julia-folder-location/64193>\
**Category:** General Usage\
**Tags:** question\
**Created:** [July 7, 2021, 5:52am UTC](https://discourse.julialang.org/t/how-to-change-julia-folder-location/64193 "2021-07-07T05:52:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Impressium](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/impressium/32/19575_2.png) [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Post date:** [July 7, 2021, 5:52am UTC](https://discourse.julialang.org/t/how-to-change-julia-folder-location/64193/1 "2021-07-07T05:52:29Z")

</div>

Hey all,

Usually the .julia folder location is in the home directory of the current user.

I want to change that. But it for example on c:.julia. I read that therefore I have to change the global variable `JULIA_DEPOT_PATH` with

```julia
set JULIA_DEPOT_PATH="C:\.julia"

```

on windows. But that didn’t work.

How would I do that correctly?

---

<div class="post-metadata">

**Author:** ![jzr](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@jzr](https://discourse.julialang.org/u/jzr)\
**Post date:** [July 7, 2021, 5:55am UTC](https://discourse.julialang.org/t/how-to-change-julia-folder-location/64193/2 "2021-07-07T05:55:23Z")

</div>

> [@Impressium](#):
>
> But that didn’t work.

How did you check whether it worked?

---

<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 7, 2021, 6:02am UTC](https://discourse.julialang.org/t/how-to-change-julia-folder-location/64193/3 "2021-07-07T06:02:55Z")

</div>

Note that setting the environment variable this way only effects the current session IIRC. So you need to start Julia from the same terminal. Otherwise you need to set the environment variable globally.

---

<div class="post-metadata">

**Author:** ![Impressium](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/impressium/32/19575_2.png) [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Post date:** [July 7, 2021, 7:30am UTC](https://discourse.julialang.org/t/how-to-change-julia-folder-location/64193/4 "2021-07-07T07:30:12Z")

</div>

This:

```julia
C:\Users\user>echo %JULIA_DEPOT_PATH%
"C:\.julia"

```

and that:

```julia
(@v1.6) pkg> st
      Status `C:\Users\user\.julia\environments\v1.6\Project.toml` (empty project)

```

I think the second one should be different.

---

<div class="post-metadata">

**Author:** ![Impressium](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/impressium/32/19575_2.png) [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Post date:** [July 7, 2021, 7:38am UTC](https://discourse.julialang.org/t/how-to-change-julia-folder-location/64193/5 "2021-07-07T07:38:55Z")

</div>

Oh 🙂 That makes sense.  
That worked for me! Thanks
