# Changing DEPOT\_PATH

**URL:** <https://discourse.julialang.org/t/changing-depot-path/54057>\
**Category:** New to Julia\
**Created:** [January 27, 2021, 2:14pm UTC](https://discourse.julialang.org/t/changing-depot-path/54057 "2021-01-27T14:14:02Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![angeloaliano1](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Post date:** [January 27, 2021, 2:14pm UTC](https://discourse.julialang.org/t/changing-depot-path/54057/1 "2021-01-27T14:14:02Z")

</div>

Dear all,  
I need to change the folder `.julia` to another, after instalation (JuliaPro). The `DEPOT_PATH` is given by:

```julia
julia> DEPOT_PATH
3-element Array{String,1}:
 "C:\\Users\\Usuário\\.julia"
 "C:\\Users\\Angelo\\Julia-1.5.3\\local\\share\\julia"
 "C:\\Users\\Angelo\\Julia-1.5.3\\share\\julia"

```

I need to move the folder `.julia` to `C:\Users\Angelo`.  
Certain packages does not work because the name’s folder is `Usuário`.  
Please, provide the correct and exctly command to me. I am a new user.  
Many thanks.

---

<div class="post-metadata">

**Author:** ![barche](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/barche/32/79_2.png) [@barche](https://discourse.julialang.org/u/barche)\
**Post date:** [January 27, 2021, 3:02pm UTC](https://discourse.julialang.org/t/changing-depot-path/54057/2 "2021-01-27T15:02:14Z")

</div>

You can change the path by setting the `JULIA_DEPOT_PATH` environment variable.

---

<div class="post-metadata">

**Author:** ![angeloaliano1](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Post date:** [January 27, 2021, 3:05pm UTC](https://discourse.julialang.org/t/changing-depot-path/54057/3 "2021-01-27T15:05:36Z")

</div>

I don’t know to do this. Could you write to me the code, please?

---

<div class="post-metadata">

**Author:** ![barche](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/barche/32/79_2.png) [@barche](https://discourse.julialang.org/u/barche)\
**Post date:** [January 27, 2021, 3:11pm UTC](https://discourse.julialang.org/t/changing-depot-path/54057/4 "2021-01-27T15:11:45Z")

</div>

Since you seem to want to make this change permanent, I recommend setting it globally:

> **[How to Set the Path and Environment Variables in Windows](https://www.computerhope.com/issues/ch000549.htm)**
>
> Information on how to set the path and environment variables in Windows 2000, Windows XP, Windows Vista, and Windows 7.

---

<div class="post-metadata">

**Author:** ![angeloaliano1](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Post date:** [January 27, 2021, 3:16pm UTC](https://discourse.julialang.org/t/changing-depot-path/54057/5 "2021-01-27T15:16:42Z")

</div>

Oh, nothing in the REPL?  
Before to install it I change this path in windows?

---

<div class="post-metadata">

**Author:** ![barche](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/barche/32/79_2.png) [@barche](https://discourse.julialang.org/u/barche)\
**Post date:** [January 27, 2021, 3:46pm UTC](https://discourse.julialang.org/t/changing-depot-path/54057/6 "2021-01-27T15:46:09Z")

</div>

Yes, `JULIA_DEPOT_PATH` needs to be set before starting Julia, you don’t need to reinstall it.

---

<div class="post-metadata">

**Author:** ![angeloaliano1](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Post date:** [January 27, 2021, 3:50pm UTC](https://discourse.julialang.org/t/changing-depot-path/54057/7 "2021-01-27T15:50:41Z")

</div>

I have changed all environment variables on windows and Julia remmains to install the folder /.julia on folder `Usuários`.  
How can I fix this?  
See:

```julia
julia> DEPOT_PATH
3-element Array{String,1}:
 "C:\\Users\\Usuário\\.julia"
 "C:\\JuliaNovo\\Julia-1.5.3\\local\\share\\julia"
 "C:\\JuliaNovo\\Julia-1.5.3\\share\\julia"

```

I have done the pah to `C:\\JuliaNovo` but .julia remmains on the wrong local.

---

<div class="post-metadata">

**Author:** ![Paulo\_Jabardo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/paulo_jabardo/32/3196_2.png) [@Paulo\_Jabardo](https://discourse.julialang.org/u/Paulo_Jabardo)\
**Post date:** [January 27, 2021, 5:06pm UTC](https://discourse.julialang.org/t/changing-depot-path/54057/8 "2021-01-27T17:06:07Z")

</div>

(en) You need to set the environment variable JULIA\_DEPOT\_PATH to the path you want.  
(pt) Você precisa configurar a variável de ambiente JULIA\_DEPOT\_PATH para coincidir com a pasta que você quer. Para fazer isso, dá uma olhada em [https://professor-falken.com/pt/windows/como-configurar-la-ruta-y-las-variables-de-entorno-en-windows-10/](https://professor-falken.com/pt/windows/como-configurar-la-ruta-y-las-variables-de-entorno-en-windows-10/)

(en) Then you create the path and it should work. I don’t have access to a windows machine right now but tonight I can try it out  
(pt) Aí você cria a pasta e tudo deveria funcionar. Neste momento não tenho acesso a uma máquina windows mas esta noite eu testo

I hope this helps.

---

<div class="post-metadata">

**Author:** ![angeloaliano1](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Post date:** [January 27, 2021, 6:49pm UTC](https://discourse.julialang.org/t/changing-depot-path/54057/9 "2021-01-27T18:49:52Z")

</div>

Thank you so much. You are very patient.
