# Offline installation of packages: Move from computer with the internet access to another offline computer

**URL:** <https://discourse.julialang.org/t/offline-installation-of-packages-move-from-computer-with-the-internet-access-to-another-offline-computer/50815>\
**Category:** New to Julia\
**Tags:** package\
**Created:** [November 26, 2020, 1:15pm UTC](https://discourse.julialang.org/t/offline-installation-of-packages-move-from-computer-with-the-internet-access-to-another-offline-computer/50815 "2020-11-26T13:15:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![EconModeler](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/econmodeler/32/19654_2.png) [@EconModeler](https://discourse.julialang.org/u/EconModeler)\
**Post date:** [November 26, 2020, 1:15pm UTC](https://discourse.julialang.org/t/offline-installation-of-packages-move-from-computer-with-the-internet-access-to-another-offline-computer/50815/1 "2020-11-26T13:15:40Z")

</div>

I am new to Julia and using JuliaPro.

I have two computers with the same OS (Windows) and the same version of JuliaPro. One computer has an internet connection and the other does not. I have to use the former computer just to download Julia packages using (Pkg.add “foo”) and the other offline computer to write and run codes for analysis. I am trying to find out how I can use packages in the offline environment.  
(This development environment may sound strange, but this is the environment where I am required to work.)

The problem is, even though I copied all the packages from USER.julia\packages of the computer with the internet access to the same directory of the offline computer, an error message appears saying

Error ArgumentError: Package Plot not found in the current path.

when I run, for example, using Plots.

Does anybody know how I can solve this problem, i.e., move the installed packages from one computer to another offline computer and use it properly?

I am doubting that there might be a problem with the path settings on the offline computer, but I do not know how I can fix it.

Another idea would be to download package files from Github directly and move it to the offline computer, but I am not sure how to build them.  
I know that it is easy to download and build libraries in R without facing the dependency hell, as done in the following link.

> **[Offline installation of packages](https://community.rstudio.com/t/offline-installation-of-packages/17854/2)**
>
> Have you tried this? install.packages("package\_name", repos = NULL, contriburl="file:path\_to\_the\_repository")

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Post date:** [November 26, 2020, 2:22pm UTC](https://discourse.julialang.org/t/offline-installation-of-packages-move-from-computer-with-the-internet-access-to-another-offline-computer/50815/2 "2020-11-26T14:22:12Z")

</div>

> [@EconModeler](#):
>
> The problem is, even though I copied all the packages from USER.julia\packages of the computer

Did you try to copy the complete `.julia` directory to the other machine? I have the impresion that that should work. You need the `environmnets` subdirectory, at least.

---

<div class="post-metadata">

**Author:** ![EconModeler](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/econmodeler/32/19654_2.png) [@EconModeler](https://discourse.julialang.org/u/EconModeler)\
**Post date:** [November 29, 2020, 1:43pm UTC](https://discourse.julialang.org/t/offline-installation-of-packages-move-from-computer-with-the-internet-access-to-another-offline-computer/50815/3 "2020-11-29T13:43:27Z")

</div>

Thank you very much for your reply.  
Due to the huge file size, I could not copy the entire directory of .julia.  
Copying environments only did not work, but adding artifacts subdirectory along with environments worked.  
I really appreciate your help.

---

<div class="post-metadata">

**Author:** ![y.ma](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/y.ma/32/35239_2.png) [@y.ma](https://discourse.julialang.org/u/y.ma)\
**Post date:** [April 14, 2022, 2:31pm UTC](https://discourse.julialang.org/t/offline-installation-of-packages-move-from-computer-with-the-internet-access-to-another-offline-computer/50815/4 "2022-04-14T14:31:17Z")

</div>

You can set up a ssh port forwarding to install packages on offline computer.  
[https://unix.stackexchange.com/questions/116191/give-server-access-to-internet-via-client-connecting-by-ssh](https://unix.stackexchange.com/questions/116191/give-server-access-to-internet-via-client-connecting-by-ssh)
