Upgrading Julia to a newer version - lmmx/devnotes GitHub Wiki
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.
apt-get
Problem: Julia installed via 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. withapt-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 theapt-get remove
process goes too far (and took a screenshot for good measure)- (for the record, the entire
~/.julia
directory wasn't touched byapt-get remove
)
- (for the record, the entire
- 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 ranPkg.update()
which downloaded and installed the packages I had (and have confirmed it did in fact replicate the full set!)