Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install julia packages offline

Tags:

julia

I'd like to use Julia on a computer which is disconnected from the Internet. Is there simple procedure to download a package and then install it offline?

like image 298
eltharion5 Avatar asked Nov 17 '15 08:11

eltharion5


1 Answers

Surely, its possible.

Pkg.dir() # => get you the package installation path

check the pkg.julialang.org/ address to get the right package and click on its github link, then you can download a zip archive from github.com and extract it into Pkg.dir()
BUT you may taking yourself into trouble
because you must do many optional things manually, e.g.:

  • rename folder to remove .jl
  • build steps
  • install all related packages

I think a better way is to install Pkgs on a connected machine and then copy Pkg.dir() contents from that machine, to your system. this approach would works well only if both machines are of the same architecture (cpuX os julia-version).

like image 90
Reza Afzalan Avatar answered Sep 29 '22 08:09

Reza Afzalan