# Import the Pkgs already installed on another PC

**URL:** <https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158>\
**Category:** General Usage\
**Created:** [November 5, 2018, 8:43am UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158 "2018-11-05T08:43:04Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [November 5, 2018, 8:43am UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/1 "2018-11-05T08:43:04Z")

</div>

Hello,  
In my workplace I do not have Internet, so I would like to import the Pkgs already installed on a PC with Internet.  
How to proceed?  
My interest is to study the Pkg “DiffEqTutorials”. So I need all the dependencies and I would like to do it with Ijulia.  
Gracias

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [November 5, 2018, 8:53am UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/2 "2018-11-05T08:53:23Z")

</div>

I would use a Docker image (possibly on a USB stick, if you are allowed to connect that).

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [November 5, 2018, 8:59am UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/3 "2018-11-05T08:59:56Z")

</div>

I can connect USB !!  
Please Can you guide me how to proceed.

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [November 5, 2018, 9:11am UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/4 "2018-11-05T09:11:01Z")

</div>

You would need to learn the basics of Docker. There are resources online, eg at

> **[Docker: Accelerated Container Application Development](https://www.docker.com/)**
>
> Docker is a platform designed to help developers build, share, and run container applications. We handle the tedious setup, so you can focus on the code.

I have a minimal setup for something else at

> **[GitHub - tpapp/texlive-julia-minimal-docker: minimal docker setup for texlive...](https://github.com/tpapp/texlive-julia-minimal-docker)**
>
> minimal docker setup for texlive and Julia. Contribute to tpapp/texlive-julia-minimal-docker development by creating an account on GitHub.

that you can use as a starting point

Presumably the organization that imposes this policy has IT support to help you further.

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [November 5, 2018, 10:04am UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/5 "2018-11-05T10:04:16Z")

</div>

EDIT: I misread the original post to understand that you do have internet. My bad. My guess is you should be able to move the `.julia` folder from one machine to the other.

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [November 5, 2018, 10:26am UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/6 "2018-11-05T10:26:31Z")

</div>

> [@mkborregaard](#):
>
> you should be able to move the `.julia` folder from one machine to the other

In theory, mostly yes, but

1. dependencies that are built by packages may be fragile,
2. binary dependencies that are installed need to be… installed 😉, which is again tricky without a network and may involve a lot of back and forth.

Even though it requires an initial investment of effort, having a self-contained image is probably the best solution. Virtualization is probably overkill, but a container should be fine.

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [November 5, 2018, 10:44am UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/7 "2018-11-05T10:44:28Z")

</div>

good points

---

<div class="post-metadata">

**Author:** ![jw3126](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jw3126/32/3086_2.png) [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Post date:** [November 5, 2018, 4:09pm UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/8 "2018-11-05T16:09:55Z")

</div>

I think I would just copy the `.julia` folder and see how far it gets you. Its win win, you either save time or you are super motivated to setup docker afterwards 😄

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [November 5, 2018, 6:01pm UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/9 "2018-11-05T18:01:44Z")

</div>

Have you actually tried that with a nontrivial setup? It breaks very easily.

For the Docker solution, cf

> [@What is the appropriate way to clone packages in dockerfile?](https://discourse.julialang.org/t/what-is-the-appropriate-way-to-clone-packages-in-dockerfile/17066):
>
> I am trying to clone or add a package from my repo in dockerfile, I am using: RUN julia -e 'import Pkg; Pkg.clone("https://github.com/jingpengw/GoogleCloud.jl.git")' but I was told that I should use add rather than clone ┌ Warning: Pkg.clone is only kept for legacy CI script reasons, please use `add` └ @ Pkg.API /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v0.7/Pkg/src/API.jl:445 after I replace the clone with add, I got errors. I am probably not using it correctly. The t…

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [November 6, 2018, 4:28pm UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/10 "2018-11-06T16:28:25Z")

</div>

Where copy the .julia folder from the Pc with Internet?  
The Pc without Internet, after installation has two folders:  
The firt folder:

> Directory of C:\Users\XXXXXX.julia
> 
> 11/06/2018 06:24 PM .  
> 11/06/2018 06:24 PM …  
> 11/04/2018 01:02 PM logs  
> 11/05/2018 10:02 AM registries  
> 0 File(s) 0  
> 3 Dir(s) 363,801,571,328 bytes free

The second folder:

> Directory of C:\Users\XXXXXXX\AppData\Local\Julia-1.0.1
> 
> 11/06/2018 06:13 PM .  
> 11/06/2018 06:13 PM …  
> 11/04/2018 01:00 PM bin  
> 11/04/2018 01:00 PM etc  
> 11/04/2018 01:00 PM include  
> 11/04/2018 01:00 PM 1,058 julia.lnk  
> 11/06/2018 06:13 PM 0 Julia2.txt  
> 11/04/2018 01:00 PM lib  
> 09/29/2018 11:53 PM 5,265 LICENSE.md  
> 11/04/2018 01:00 PM share  
> 11/04/2018 01:00 PM 112,416 Uninstall.exe

---

<div class="post-metadata">

**Author:** ![jw3126](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jw3126/32/3086_2.png) [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Post date:** [November 6, 2018, 4:42pm UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/11 "2018-11-06T16:42:40Z")

</div>

Copy the contents of .julia into the first folder.

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [November 6, 2018, 4:45pm UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/12 "2018-11-06T16:45:50Z")

</div>

Are you SURE there is no corporate proxy server?

There is another very hacky way to do this.  
Find the names of all the Julia packages which you need.  
CLone the package GitHub trees onto a hard drive.  
Connect the hard drive to your target machine.  
You could either run a local webserver and futz with your hosts file so [GitHub.com](http://GitHub.com) is defined as localhost  
Or just use add /path/to/package

Before anyone says it, yes this is quite a desperate measure. Not directly Julia, but I have installed RPM packages on secure sites like this.

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [November 7, 2018, 5:03am UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/13 "2018-11-07T05:03:20Z")

</div>

Yes is corporate proxy server:sweat:😓😓

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [November 7, 2018, 7:57am UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/14 "2018-11-07T07:57:11Z")

</div>

@HerAdri We can help with the corporate proxy. I have experience of then when working at ASML.  
At the time, the library used by Julia for proxy had a problem with certain types of corporate proxy.  
I had the rather strage behaviour of download of packages working sometimes, but not others.  
I believe the authentication library has now changed.  
You can set environment variables which define your proxy, your username and password - and you may have to do this

Firstly  
what messages do you get when trying to add a package? Or does it just hang?  
run the ENV command int he Julia REPL and send the output please  
What do you know about the corporate proxy? Does NTL authentication mean anything?  
You can get the corporate proxy by looking for the settings in your Windows web browser

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [November 7, 2018, 8:00am UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/15 "2018-11-07T08:00:06Z")

</div>

Please also have a look at this issue  
[https://github.com/JuliaLang/julia/issues/25245](https://github.com/JuliaLang/julia/issues/25245)

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [November 7, 2018, 10:07am UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/16 "2018-11-07T10:07:25Z")

</div>

> [@johnh](#):
>
> ENV

Everything I know about my proxy:

![MyProxyfromIE](https://global.discourse-cdn.com/julialang/original/3X/3/0/300dc48443366fe5d22230dbcd9afe55623c41c4.jpeg)  
I installed Julia again and sent the result of ENV command int he Julia REPL  
Gracias

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [November 7, 2018, 10:28am UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/17 "2018-11-07T10:28:55Z")

</div>

> julia\> ENV  
> Base.EnvDict with 39 entries:  
> “=::” =\> “::\”  
> “ALLUSERSPROFILE” =\> “C:\ProgramData”  
> “APPDATA” =\> “C:\Users\hermesr\AppData\Roaming”  
> “CommonProgramFiles” =\> “C:\Program Files\Common Files”  
> “COMPUTERNAME” =\> “HERMES”  
> “ComSpec” =\> “C:\WINDOWS\system32\cmd.exe”  
> “DEFLOGDIR” =\> “C:\ProgramData\McAfee\Endpoint Security\Logs”
> 
> “EQ\_LIBRARY\_PATH” =\> "c:\users\hermesr\gcc\i686-pc-mingw32\lib;c:.
> 
> “FP\_NO\_HOST\_CHECK” =\> “NO”  
> “HOMEDRIVE” =\> “Z:”  
> “HOMEPATH” =\> “\”  
> “HOMESHARE” =\> “\\ecpfs\users\hermesr.ELECTRA\_CON”  
> “LOCALAPPDATA” =\> “C:\Users\hermesr\AppData\Local”  
> “LOGONSERVER” =\> “\\DCECP01”  
> “NUMBER\_OF\_PROCESSORS” =\> “4”  
> “OPENBLAS\_MAIN\_FREE” =\> “1”  
> “OS” =\> “Windows\_NT”  
> “Path” =\> "C:\Program Files\ImageMagick-7.0.7-Q16;C:\Pro.
> 
> “PATHEXT” =\> ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH.
> 
> “PROCESSOR\_ARCHITECTURE” =\> “x86”  
> ? =\> ?

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [November 7, 2018, 10:31am UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/18 "2018-11-07T10:31:32Z")

</div>

@HerAdri this rather old writeup should help.  
[Troubleshooting libgit2](https://discourse.julialang.org/t/troubleshooting-libgit2/1542)  
And this  
[Git Behind A Proxy Server - How to modify your Git commands for proxies - Guide - The freeCodeCamp Forum](https://www.freecodecamp.org/forum/t/git-behind-a-proxy-server/13187)

git config --global http.proxy [http://hemes:password@proxy05.ecp.elc:8080](http://hemes:password@proxy05.ecp.elc:8080)

git config --global https.proxy [https://hemes:password@proxy05.ecp.elc:8080](https://hemes:password@proxy05.ecp.elc:8080)  
I think you opnly have to set the http proxy

If this does not work we may have to set the HTTP\_PROXY environment variable

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [November 7, 2018, 10:34am UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/19 "2018-11-07T10:34:39Z")

</div>

Sorry for hijacking the thread, I asked a few days ago at the Slack #helpdesk but to no avail - @johnh I’m having related issues, maybe you have an idea:

I’m behind a corporate firewall as well but regular package installations actually work fine, my problem is with those packages that rely on shared libraries. As an example, I fail to precompile `DataFrames`, as it requires building `CodecZlib`, which errors out with a `could not download https://github... to C:\Users\...` error. Any idea what is going wrong here?

(would have caught you at the Julia Hackathon last months if I’d known you’re an expert on corporate proxy issues!)

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [November 7, 2018, 10:49am UTC](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158/20 "2018-11-07T10:49:00Z")

</div>

> [@nilshg](#):
>
> Any idea what is going wrong here?

Perhaps you can debug this using a command line utility like `wget` or `curl`. Specify the URL, and see if the proxy works, ask for verbose output (eg `--verbose` for `wget`).

[Next page](https://discourse.julialang.org/t/import-the-pkgs-already-installed-on-another-pc/17158.md?page=2)
