Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to upgrade Julia to a new release?

Tags:

julia

Question 1 - upgrade

I'm using v"0.3.8" on Windows. I found from

http://julialang.org/downloads/

Current Release (v0.3.9) 

I know I could download the prebuild version and install again. Is there a way to upgrade (from current installed version) to the new version?

There's Pkg.update(), it runs for a long time without any output - it doesn't work in this way.

From the documentation:

update() Update package the metadata repo – kept in Pkg.dir("METADATA") – then update any fixed packages that can safely be pulled from their origin; then call Pkg.resolve() to determine a new optimal set of packages versions.

So it is not the right tool to upgrade the language itself.

Question 2 - Release Note

Is there such a thing as ReleaseNote or ChangeList? Or any hightlight on major change?

(I understand that the language hasn't reached v1.0. If there is a place to find major change/improvement, that's good. If not, that's fine.)

like image 839
Nick Avatar asked May 31 '15 08:05

Nick


People also ask

How do I check my Julia version?

versioninfo([verbose::Bool]) Print information about the version of Julia in use. If the verbose argument is true, detailed system information is shown as well. There's also the VERSION constant which simply contains the version number. Inside julia prompt, versioninfo() will get you version info.


2 Answers

How to upgrade Julia:

Windows & MacOS & Linux

The most trivial way of upgrading Julia is to go to the download page and manually install corresponding binaries. (UPDATE: if you're on old Julia, e.g. v0.6)If you're going to upgrade Julia to a new minor version(e.g. v0.5=>v0.6), you could easily reinstall your old packages by the following steps(Julia-v1.0 shipped with the new package manager, so there is no such hassle):

  1. julia> using Pkg # Pkg.init() if needed
  2. copy REQUIRE file from package directory of the old version to the new one (in this example from .julia/v0.5 to .julia/v0.6) overwriting the existing file
  3. julia> Pkg.resolve() # or Pkg.update()

MacOS

If you're using Homebrew and homebrew-julia, please follow the instructions here.

Linux

Use abelsiqueira's installer jill.

To OP's Question

1.Pkg.update() is used for updating Julia's packages, not Julia itself, so downloading the prebuild version and reinstalling seems to be the only way to upgrade Julia for now. Or you could build Julia from source following the instructions here.

2.The release notes are listed here:

  • https://github.com/JuliaLang/julia/blob/master/HISTORY.md
  • https://github.com/JuliaLang/julia/blob/master/NEWS.md
like image 86
9 revs, 3 users 85% Avatar answered Sep 25 '22 00:09

9 revs, 3 users 85%


I just wanna share my experience when updating julia from 0.3.11 to 0.4.0.

If you're using Ubuntu you can use:

sudo apt-get dist-upgrade julia 

It will bring the previous version be upgraded to the new version. But, the installed packages on the previous version won't be pulled up to the new version.

If you're using IJulia, when you start your "jupyter notebook", your jupyter kernel won't detect the new version of julia, but still detects the previous one. Also, the previous one be a dead kernel. You've to install IJulia manually from

Pkg.add("IJulia") 

That's all.

like image 25
a_a Avatar answered Sep 25 '22 00:09

a_a