# Questions related to updating Julia

**URL:** <https://discourse.julialang.org/t/questions-related-to-updating-julia/92896>\
**Category:** General Usage\
**Tags:** question\
**Created:** [January 12, 2023, 9:13pm UTC](https://discourse.julialang.org/t/questions-related-to-updating-julia/92896 "2023-01-12T21:13:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leon6](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/leon6/32/205483_2.png) [@Leon6](https://discourse.julialang.org/u/Leon6)\
**Post date:** [January 12, 2023, 9:13pm UTC](https://discourse.julialang.org/t/questions-related-to-updating-julia/92896/1 "2023-01-12T21:13:23Z")

</div>

I’m on Mac OS Venture 13.1 and am trying to upgrade from my current v1.7 to v1.8.5.After downloading and installing the dmg file now I have both versions in my Application folder.

How should I remove the old version and link all of the Julia packages to the new version?

What would I need to do to make sure the next time I run “julia xxx.jl” in a terminal, it will execute the new version of Julia?

Many thanks.

---

<div class="post-metadata">

**Author:** ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Post date:** [January 12, 2023, 9:27pm UTC](https://discourse.julialang.org/t/questions-related-to-updating-julia/92896/2 "2023-01-12T21:27:37Z")

</div>

Both can coexist just fine, and you need not worry about Julia’s packages — they’ll sort themselves out as needed within the environments that you use.

How you change what `julia` refers to in your terminal, however, depends upon how you set it up in the first place. There are lots of ways you might have done this — you may have used a symlink or a shell alias or changed your PATH. One way to jog your memory is with the command `type julia` in the terminal — that’ll tell you how the terminal resolves the command. If it’s just a path `/Applications/Julia-...`, then you probably modified your `$PATH` variable in some shell setup file. You just need to find where you changed your path and update it with the new path for v1.8.

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [January 12, 2023, 9:31pm UTC](https://discourse.julialang.org/t/questions-related-to-updating-julia/92896/3 "2023-01-12T21:31:01Z")

</div>

Actually, `which julia` will tell you precisely which executable will fire.

---

<div class="post-metadata">

**Author:** ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Post date:** [January 12, 2023, 9:41pm UTC](https://discourse.julialang.org/t/questions-related-to-updating-julia/92896/4 "2023-01-12T21:41:42Z")

</div>

I know about `which`; using `type` here was intentional as I’ve found it to be slightly more robust: [shell - How to use `which` on an aliased command? - Unix & Linux Stack Exchange](https://unix.stackexchange.com/questions/10525/how-to-use-which-on-an-aliased-command)

I suppose it doesn’t matter as much now that most folks on macOS will be using zsh, but on bash it definitely can cause confusion[(1)](https://stackoverflow.com/questions/40183218/why-does-sed-behave-differently-in-a-shell-script).

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [January 12, 2023, 9:48pm UTC](https://discourse.julialang.org/t/questions-related-to-updating-julia/92896/5 "2023-01-12T21:48:52Z")

</div>

Ah, that’s good to know.

---

<div class="post-metadata">

**Author:** ![Leon6](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/leon6/32/205483_2.png) [@Leon6](https://discourse.julialang.org/u/Leon6)\
**Post date:** [January 12, 2023, 10:29pm UTC](https://discourse.julialang.org/t/questions-related-to-updating-julia/92896/6 "2023-01-12T22:29:47Z")

</div>

Many thanks!

I updated the path below:  
`sudo ln -s /Applications/Julia-1.8.app/Contents/Resources/julia/bin/julia /usr/local/bin/julia`

Unfortunately, it seems that I would need to reinstall all the packages again. What am I missing?

---

<div class="post-metadata">

**Author:** ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Post date:** [January 12, 2023, 10:45pm UTC](https://discourse.julialang.org/t/questions-related-to-updating-julia/92896/7 "2023-01-12T22:45:10Z")

</div>

> [@Mantain packages after Julia upgrade](https://discourse.julialang.org/t/mantain-packages-after-julia-upgrade/91177):
>
> How can I mantain my old used packages after a new Julia release upgrade?
