# How to upgrade Julia to a new release?

**URL:** <https://discourse.julialang.org/t/how-to-upgrade-julia-to-a-new-release/17381>\
**Category:** New to Julia\
**Created:** [November 10, 2018, 10:22am UTC](https://discourse.julialang.org/t/how-to-upgrade-julia-to-a-new-release/17381 "2018-11-10T10:22:48Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [November 10, 2018, 10:22am UTC](https://discourse.julialang.org/t/how-to-upgrade-julia-to-a-new-release/17381/1 "2018-11-10T10:22:48Z")

</div>

How to upgrade Julia 1.0.1 to a new release Julia 1.0.2?  
No need to de-install the old version and download and install the new one!!!

There is some command that makes it all from the same program:  
update Julia to new released and copy require file and package from the old version to the new one  
Gracias

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [November 10, 2018, 10:32am UTC](https://discourse.julialang.org/t/how-to-upgrade-julia-to-a-new-release/17381/2 "2018-11-10T10:32:40Z")

</div>

You can either remove and reinstall, or just install the new version alongside the old one.

> [@HerAdri](#):
>
> copy require file and package from the old version to the new one

This is not necessary.

---

<div class="post-metadata">

**Author:** ![jlperla](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jlperla/32/34332_2.png) [@jlperla](https://discourse.julialang.org/u/jlperla)\
**Post date:** [November 10, 2018, 2:59pm UTC](https://discourse.julialang.org/t/how-to-upgrade-julia-to-a-new-release/17381/3 "2018-11-10T14:59:22Z")

</div>

The only manual step I have noticed is, if you work with IJulia, you I think I needed to go `] build IJulia ` prior to working in jupyter after the installation.

---

<div class="post-metadata">

**Author:** ![oliver](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oliver/32/19264_2.png) [@oliver](https://discourse.julialang.org/u/oliver)\
**Post date:** [November 10, 2018, 5:21pm UTC](https://discourse.julialang.org/t/how-to-upgrade-julia-to-a-new-release/17381/4 "2018-11-10T17:21:13Z")

</div>

`sudo rm -r /usr/lib/julia-1.0.1`  
`sudo mv /Downloads/julia-1.0.2/ /usr/lib/`  
`sudo ln -s /usr/lib/julia-1.0.2/bin/julia /usr/bin/julia`  
`julia`

---

<div class="post-metadata">

**Author:** ![RAbraham](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rabraham/32/6066_2.png) [@RAbraham](https://discourse.julialang.org/u/RAbraham)\
**Post date:** [November 14, 2018, 1:15pm UTC](https://discourse.julialang.org/t/how-to-upgrade-julia-to-a-new-release/17381/5 "2018-11-14T13:15:48Z")

</div>

On Mac OS, you just install the latest dmg file and replace the older one when it prompts you. Of course, this won’t work if you are moving from v1 to v2 as the path is major revision specific i.e. `/Applications/Julia-1.0.app/Contents/Resources/julia/bin/julia`

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [November 14, 2018, 3:39pm UTC](https://discourse.julialang.org/t/how-to-upgrade-julia-to-a-new-release/17381/6 "2018-11-14T15:39:53Z")

</div>

This is on Windows?  
I recently installed Julia 1.0.2 on a system which originally had 1.0.1 installed.  
Just install the new version.  
The only thing is that a new desktop icon was not created.  
As above, there is semantic versioning 1.0.1 to 1.0.2 is a patch release.  
The 1.0 is the interesting version

So just install 1.0.2 GO into the package manager and type status  
You will find you have your original set of packages.

Please stick with Julia. I have gone through a lot of the feelings you have, regarding corporate proxies and versioning.  
Please dont get frustrated. We can help!

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [January 23, 2019, 11:43am UTC](https://discourse.julialang.org/t/how-to-upgrade-julia-to-a-new-release/17381/7 "2019-01-23T11:43:37Z")

</div>

installed julia-1.1.0. Run the pkg\> st command

```julia
(v1.1) pkg> st
    Status `C:\Users\hermesr\.julia\environments\v1.1\Project.toml`
  [c52e3926] Atom v0.7.14
  [e5e0dc1b] Juno v0.5.4

(v1.1) pkg>

```

Only two packages appear.!!!

In julia-1.0.3 are these packages:

```julia
(v1.0) pkg> st
    Status `C:\Users\hermesr\.julia\environments\v1.0\Project.toml`
  [28f2ccd6] ApproxFun v0.10.3
  [d9fa014c] ApproxFunExamples v0.1.0 #master (https://github.com/JuliaApproxima
tion/ApproxFunExamples.git)
  [c52e3926] Atom v0.7.12
  [ffab5731] BlockBandedMatrices v0.3.2+ #master (https://github.com/JuliaMatric
es/BlockBandedMatrices.jl.git)
  [49dc2e85] Calculus v0.4.1
  [5ae59095] Colors v0.9.5
  [717857b8] DSP v0.5.2
  [a93c6f00] DataFrames v0.16.0
  [2b5f629d] DiffEqBase v4.31.2
  [225cb15b] DiffEqTutorials v0.0.0 #master (https://github.com/JuliaDiffEq/Diff
EqTutorials.jl.git)
  [0c46a032] DifferentialEquations v5.3.1
  [31c24e10] Distributions v0.16.4
  [38e38edf] GLM v1.0.2
  [28b8d3ca] GR v0.37.0
  [c91e804a] Gadfly v1.0.1
  [09f84164] HypothesisTests v0.8.0
  [7073ff75] IJulia v1.15.2
  [86fae568] ImageView v0.8.2+ #master (https://github.com/JuliaImages/ImageView
.jl.git)
  [916415d5] Images v0.17.0
  [c601a237] Interact v0.9.0
  [e5e0dc1b] Juno v0.5.3
  [b964fa9f] LaTeXStrings v1.0.3
  [093fc24a] LightGraphs v1.2.0
  [1dea7af3] OrdinaryDiffEq v4.19.0
  [3b7a836e] PGFPlots v3.0.1
  [91a5bcdd] Plots v0.22.5
  [438e738f] PyCall v1.18.5
  [d330b81b] PyPlot v2.7.0
  [6f49c342] RCall v0.13.0
  [ce6b1742] RDatasets v0.6.1
  [f2b01f46] Roots v0.7.4
  [6ac157d9] SatelliteToolbox v0.5.0
  [276daf66] SpecialFunctions v0.7.2
  [60ddc479] StatPlots v0.8.2
  [2913bbd2] StatsBase v0.27.0
  [b8865327] UnicodePlots v1.0.1
  [44dac47c] VMLS v0.2.0 #master (https://github.com/VMLS-book/VMLS.jl)
  [37e2e46d] LinearAlgebra
  [9a3f8284] Random
  [2f01184e] SparseArrays

(v1.0) pkg>

```

How to update the latest version without having to install each package again?

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [January 23, 2019, 11:47am UTC](https://discourse.julialang.org/t/how-to-upgrade-julia-to-a-new-release/17381/8 "2019-01-23T11:47:58Z")

</div>

See [Julia v1.1.0 has been released - #4 by kristoffer.carlsson](https://discourse.julialang.org/t/julia-v1-1-0-has-been-released/19911/4).

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [January 23, 2019, 12:15pm UTC](https://discourse.julialang.org/t/how-to-upgrade-julia-to-a-new-release/17381/9 "2019-01-23T12:15:30Z")

</div>

My apologies, if I was not clear. I am referring to that version: julia1.1.0. It is where I am presenting the problem stated above  
Last version on my PC

```julia
julia> versioninfo()
Julia Version 1.1.0
Commit 80516ca202 (2019-01-21 21:24 UTC)
Platform Info:
  OS: Windows (i686-w64-mingw32)
  CPU: Intel(R) Core(TM) i3-4160 CPU @ 3.60GHz
  WORD_SIZE: 32
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, haswell)

```

Previous version, still installed, on my PC:

```julia
julia> versioninfo()
Julia Version 1.0.3
Commit 099e826241 (2018-12-18 01:34 UTC)
Platform Info:
  OS: Windows (i686-w64-mingw32)
  CPU: Intel(R) Core(TM) i3-4160 CPU @ 3.60GHz
  WORD_SIZE: 32
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.0 (ORCJIT, haswell)

julia>

```

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [January 23, 2019, 12:18pm UTC](https://discourse.julialang.org/t/how-to-upgrade-julia-to-a-new-release/17381/10 "2019-01-23T12:18:21Z")

</div>

Yes, the linked comment applies to exactly this scenario.

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [January 25, 2019, 5:45am UTC](https://discourse.julialang.org/t/how-to-upgrade-julia-to-a-new-release/17381/11 "2019-01-25T05:45:32Z")

</div>

Continuing the discussion from [Julia v1.1.0 has been released](https://discourse.julialang.org/t/julia-v1-1-0-has-been-released/19911/4):

---

<div class="post-metadata">

**Author:** ![taqtiqa-mark](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/taqtiqa-mark/32/4383_2.png) [@taqtiqa-mark](https://discourse.julialang.org/u/taqtiqa-mark)\
**Post date:** [April 25, 2019, 4:13am UTC](https://discourse.julialang.org/t/how-to-upgrade-julia-to-a-new-release/17381/12 "2019-04-25T04:13:55Z")

</div>

> [@HerAdri](#):
>
> How to upgrade Julia 1.0.1 to a new release Julia 1.0.2?

Leveraging all the experience built into the code base of [`rbenv`](https://github.com/rbenv/rbenv) … you could use `jlenv`.

Install:

1. [jlenv](https://github.com/HiroakiMikami/jlenv#installation) - this installs julia-build by default.

Then [install Julia versions](https://github.com/HiroakiMikami/jlenv#installing-julia-versions):

```julia
$ jlenv install v1.1.0

```

**NOTE:**  
As further versions of Julia are released, the [julia-build project](https://github.com/HiroakiMikami/julia-build) gets updated, so you will need to [update julia-build](https://github.com/HiroakiMikami/julia-build#upgrading), before you can install a new version of julia.

---

<div class="post-metadata">

**Author:** ![dcastel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dcastel/32/10692_2.png) [@dcastel](https://discourse.julialang.org/u/dcastel)\
**Post date:** [November 26, 2019, 5:23pm UTC](https://discourse.julialang.org/t/how-to-upgrade-julia-to-a-new-release/17381/13 "2019-11-26T17:23:20Z")

</div>

So I see a lot of options in this thread:

1. jenv @taqtiqa-mark (cross-platform?)
2. removing old install, moving unpacked folder and symlinking new like @oliver (cross-platform?)
3. using the installer (dmg on OSX @RAbraham)

I did 3) and seemed to have quite some issues but I’m using Jupyter in combination. I added the new kernel afterwards and now after removing v.1.0 everything seems to be functional again.

I’m still left wondering what’s the ‘cleanest’ way to upgrade a complete installation including all packages? Looking forward to 1.3 so would love to know before the release.

---

<div class="post-metadata">

**Author:** ![taqtiqa-mark](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/taqtiqa-mark/32/4383_2.png) [@taqtiqa-mark](https://discourse.julialang.org/u/taqtiqa-mark)\
**Post date:** [November 26, 2019, 5:47pm UTC](https://discourse.julialang.org/t/how-to-upgrade-julia-to-a-new-release/17381/14 "2019-11-26T17:47:50Z")

</div>

> [@dcastel](#):
>
> jenv @taqtiqa-mark (cross-platform?)

`bash` possibly with some support for zsh and fish (I don’t use those and there aren’t any tests for them).  
It may work on MacOS and Windows 10 with its linux subsystem but neither are used or tested by me.

Really dependent on community use/support so issue reports and PR’s welcome.

> [@dcastel](#):
>
> I’m still left wondering what’s the ‘cleanest’ way to upgrade a complete installation including all packages?

I should add that the ideal `jlenv` use case is multiple installs for a user, e.g. per-project.  
The ideal 'julia-cookbook` use case is system wide installs.

Of course you can do as you wish (I use chef to manage my desktop with user scoped installs and no system wide julia), but those encourage reasonable/sound practice.

---

<div class="post-metadata">

**Author:** ![GdMacmillan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdmacmillan/32/8839_2.png) [@GdMacmillan](https://discourse.julialang.org/u/GdMacmillan)\
**Post date:** [December 3, 2019, 4:05am UTC](https://discourse.julialang.org/t/how-to-upgrade-julia-to-a-new-release/17381/15 "2019-12-03T04:05:33Z")

</div>

Linking other thread: [How can I be able to use binary command "julia" in Mac OSX terminal? - #3 by StevenSiew](https://discourse.julialang.org/t/how-can-i-be-able-to-use-binary-command-julia-in-mac-osx-terminal/22270/3)

---

<div class="post-metadata">

**Author:** ![PeterNorlindh](https://avatars.discourse-cdn.com/v4/letter/p/bc8723/32.png) [@PeterNorlindh](https://discourse.julialang.org/u/PeterNorlindh)\
**Post date:** [January 18, 2020, 4:53pm UTC](https://discourse.julialang.org/t/how-to-upgrade-julia-to-a-new-release/17381/16 "2020-01-18T16:53:44Z")

</div>

Upgrading Julia in Ubuntu is such a pain for me. And it feels like it could just as well have been super easy…

Here’s what happens. When I do “sudo apt-get upgrade julia” it doesn’t upgrade to v.1.3 (which I expected), no instead it downgrades to v.1.0.4!

I have no idea how these things are maintained, but would presume that sudo apt-get… should work, right? Perhaps the task of upgrading the repository has fallen between the chairs or something?

Peter

---

<div class="post-metadata">

**Author:** ![aaowens](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aaowens/32/12101_2.png) [@aaowens](https://discourse.julialang.org/u/aaowens)\
**Post date:** [January 18, 2020, 5:15pm UTC](https://discourse.julialang.org/t/how-to-upgrade-julia-to-a-new-release/17381/17 "2020-01-18T17:15:52Z")

</div>

The Julia people don’t maintain the Ubuntu repositories.

Moreover, the repository is pretty conservative and doesn’t give people the newest versions by design. You should use the official Linux binaries instead as suggested on the downloads page [Platform Specific Instructions for Official Binaries](https://julialang.org/downloads/platform/) .

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [January 18, 2020, 5:21pm UTC](https://discourse.julialang.org/t/how-to-upgrade-julia-to-a-new-release/17381/18 "2020-01-18T17:21:19Z")

</div>

well, that’s because you’re using Ubuntu, and Ubuntu people wants ‘LTS’ software, maybe it’s time to change a distro,

[https://www.archlinux.org/packages/community/x86\_64/julia/](https://www.archlinux.org/packages/community/x86_64/julia/)

---

<div class="post-metadata">

**Author:** ![Oscar\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscar_smith/32/25343_2.png) [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)\
**Post date:** [January 18, 2020, 9:40pm UTC](https://discourse.julialang.org/t/how-to-upgrade-julia-to-a-new-release/17381/19 "2020-01-18T21:40:28Z")

</div>

Could we make an Ubuntu package called `get-julia` which is just a bash script that wgets and unzips into the right location? That way, the script wouldn’t need to be upgraded, but re-running it would lead to the user getting an updated Julia version. With a little extra work, such a script could also presumably check for packages and install them as well. Thoughts?

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [January 19, 2020, 7:46am UTC](https://discourse.julialang.org/t/how-to-upgrade-julia-to-a-new-release/17381/20 "2020-01-19T07:46:49Z")

</div>

I don’t think that Ubuntu packages for installing software in user directories are encouraged. And it’s a lot of hassle. There are solutions like

[https://github.com/abelsiqueira/jill](https://github.com/abelsiqueira/jill)

instead.

FWIW, distribution releases (when the idea is applicable) are _always_ a bit behind on software versions _for all software_. This is natural: everything in the release should be well-tested. It is understood that if you want the cutting edge, you install from sources, or use a PPA or similar.

[Next page](https://discourse.julialang.org/t/how-to-upgrade-julia-to-a-new-release/17381.md?page=2)
