# Install packages on machine not connected to internet

**URL:** <https://discourse.julialang.org/t/install-packages-on-machine-not-connected-to-internet/100650>\
**Category:** General Usage\
**Tags:** question, package\
**Created:** [June 21, 2023, 1:15pm UTC](https://discourse.julialang.org/t/install-packages-on-machine-not-connected-to-internet/100650 "2023-06-21T13:15:34Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![gitboy16](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gitboy16/32/24906_2.png) [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Post date:** [June 23, 2023, 9:21pm UTC](https://discourse.julialang.org/t/install-packages-on-machine-not-connected-to-internet/100650/21 "2023-06-23T21:21:21Z")

</div>

I really think issue coming from `AllowTcpForwarding no` and need to experiment with a server that does not have that. I think the steps described by @HanD are actually the correct ones.

---

<div class="post-metadata">

**Author:** ![dlakelan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dlakelan/32/8491_2.png) [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Post date:** [June 24, 2023, 4:27pm UTC](https://discourse.julialang.org/t/install-packages-on-machine-not-connected-to-internet/100650/22 "2023-06-24T16:27:06Z")

</div>

> [@gitboy16](#):
>
> only works if both machines are running the same operating system.

Install the OS you need in a VM on the connected machine?

---

<div class="post-metadata">

**Author:** ![gitboy16](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gitboy16/32/24906_2.png) [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Post date:** [June 24, 2023, 8:42pm UTC](https://discourse.julialang.org/t/install-packages-on-machine-not-connected-to-internet/100650/23 "2023-06-24T20:42:02Z")

</div>

I am not admin so can’t do that.

---

<div class="post-metadata">

**Author:** ![gitboy16](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gitboy16/32/24906_2.png) [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Post date:** [June 25, 2023, 8:42am UTC](https://discourse.julialang.org/t/install-packages-on-machine-not-connected-to-internet/100650/24 "2023-06-25T08:42:20Z")

</div>

It is just an idea and I have no experience with github action. Would it be possible to use github action to install Julia and install all the package I need in a ubuntu environment and it would create the /.julia folder that would be zipped and available to dowbload from github? Then I just need to download the zipped folder from github and move it to the ubuntu server. Is it feasible and would that work?

---

<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:** [June 25, 2023, 8:46am UTC](https://discourse.julialang.org/t/install-packages-on-machine-not-connected-to-internet/100650/25 "2023-06-25T08:46:47Z")

</div>

You are starting to talk the language of containers here. Is it possible to ship a container image across to the unconnected server?

As an aside, for setting up ssh tunnels and socks proxies using Windows I find MobaXterm is invaluable.

---

<div class="post-metadata">

**Author:** ![gitboy16](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gitboy16/32/24906_2.png) [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Post date:** [June 25, 2023, 8:56am UTC](https://discourse.julialang.org/t/install-packages-on-machine-not-connected-to-internet/100650/26 "2023-06-25T08:56:47Z")

</div>

No, unfortunately, i can’t send a container image on my side.

---

<div class="post-metadata">

**Author:** ![Ashlin\_Harris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ashlin_harris/32/210166_2.png) [@Ashlin\_Harris](https://discourse.julialang.org/u/Ashlin_Harris)\
**Post date:** [June 28, 2023, 5:43pm UTC](https://discourse.julialang.org/t/install-packages-on-machine-not-connected-to-internet/100650/27 "2023-06-28T17:43:32Z")

</div>

Do you have a build machine with the same architecture as the secure machine? @dilumaluthge and I made [a package for this use case](https://github.com/bcbi/SIEGE), and we use it for maintaining our Julia environment on an air-gapped system.

[I wrote up a description here on the Julia Discourse](https://discourse.julialang.org/t/secure-systems-an-alternate-use-case-for-packagecompiler-jl/90955), so even if this isn’t the right solution for you, the linked posts underneath the question might be helpful.

---

<div class="post-metadata">

**Author:** ![gitboy16](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gitboy16/32/24906_2.png) [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Post date:** [June 30, 2023, 5:33am UTC](https://discourse.julialang.org/t/install-packages-on-machine-not-connected-to-internet/100650/28 "2023-06-30T05:33:59Z")

</div>

No,I don’t have a build machine with the same architecture as the secure machine.

---

<div class="post-metadata">

**Author:** ![HanD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hand/32/213908_2.png) [@HanD](https://discourse.julialang.org/u/HanD)\
**Post date:** [July 11, 2023, 6:37am UTC](https://discourse.julialang.org/t/install-packages-on-machine-not-connected-to-internet/100650/29 "2023-07-11T06:37:38Z")

</div>

> [@gitboy16](#):
>
> I think the issue is port forwardimg is not allowed.

Yeah, I’m 100% sure it is that setting. Too bad, it is usually enabled in `sshd` installations.

In this case, the only idea I have left is to install WSL on your Windows machine (which is just an Ubuntu), install Julia there, and then use the depot migration trick that I recommended [above](https://discourse.julialang.org/t/install-packages-on-machine-not-connected-to-internet/100650/6).

[Previous page](https://discourse.julialang.org/t/install-packages-on-machine-not-connected-to-internet/100650.md?page=1)
