Skip to content

Upgrading Julia to a newer version

Louis Maddox edited this page Jan 7, 2018 · 1 revision

I'm going from v0.5 to 0.6 (a bit overdue!) to get access to some of the newer packages e.g. JuliaDB.

As recommended on StackOverflow here, go to the downloads page and download the new binary.

Problem: Julia installed via apt-get

Downloading the new package, it's clear (from running find / -iname "libjulia.so" 2>/dev/null; }, as well as for juliarc.jl and other files) that this package is not in a single location, but rather spread out across various parts of the system.

  • Running dpkg -s julia I confirmed this is due to installing from the Linux package manager [i.e. with apt-get]
  • As a precaution, I am copying the REQUIRE file for the installed version of Julia, so that I am sure not to lose my list of current packages if the apt-get remove process goes too far (and took a screenshot for good measure)
    • (for the record, the entire ~/.julia directory wasn't touched by apt-get remove)
  • rather than manually linking, I modified jill.sh to install to my preferred locations
  • once installed, I started up Julia, ran Pkg.init(), then copied over the contents of ~/.julia/v0.5/REQUIRE to ~/.julia/v0.6/REQUIRE and back in the Julia console ran Pkg.update() which downloaded and installed the packages I had (and have confirmed it did in fact replicate the full set!)
Clone this wiki locally