eltharion5
eltharion5

Reputation: 93

How to install julia packages offline

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?

Upvotes: 9

Views: 9359

Answers (1)

Reza Afzalan
Reza Afzalan

Reputation: 5756

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).

Upvotes: 5

Related Questions