# Offline installation of Julia packages

**URL:** <https://discourse.julialang.org/t/offline-installation-of-julia-packages/20083>\
**Category:** General Usage\
**Tags:** package, installation\
**Created:** [January 25, 2019, 11:31am UTC](https://discourse.julialang.org/t/offline-installation-of-julia-packages/20083 "2019-01-25T11:31:59Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![kschertler](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kschertler/32/12899_2.png) [@kschertler](https://discourse.julialang.org/u/kschertler)\
**Post date:** [June 13, 2021, 6:18pm UTC](https://discourse.julialang.org/t/offline-installation-of-julia-packages/20083/22 "2021-06-13T18:18:33Z")

</div>

Thanks Gunnar for confirming!

---

<div class="post-metadata">

**Author:** ![alirezamecheng](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@alirezamecheng](https://discourse.julialang.org/u/alirezamecheng)\
**Post date:** [December 28, 2021, 7:26am UTC](https://discourse.julialang.org/t/offline-installation-of-julia-packages/20083/23 "2021-12-28T07:26:38Z")

</div>

It seems too late for a response but since this question comes up in the searches I post here.  
I created a Julia program that mirrors the Julia repository for offline clusters. It is not an advanced code but it solved my problems. [nativeJuliaMirror.jl](https://github.com/alirezaghavaminia/nativeJuliaMirror.jl)

---

<div class="post-metadata">

**Author:** ![Timothy](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@Timothy](https://discourse.julialang.org/u/Timothy)\
**Post date:** [April 19, 2022, 5:37am UTC](https://discourse.julialang.org/t/offline-installation-of-julia-packages/20083/24 "2022-04-19T05:37:04Z")

</div>

This may not be the best method to get packages working on an offline computer, but this is a method that worked for me:

To get Julia working on a computer without internet access:

1. Install desired packages onto a computer with internet access.
2. Copy entire `.julia` directory and transfer onto the computer without internet access.

This works for me when both computers are running Windows10. I assume you could do the same with other operating systems if they are the same on both computers.

---

<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:** [December 14, 2022, 3:52pm UTC](https://discourse.julialang.org/t/offline-installation-of-julia-packages/20083/25 "2022-12-14T15:52:46Z")

</div>

Another way to make packages available offline is to [create a custom sysimage](https://julialang.github.io/PackageCompiler.jl/dev/sysimages.html#Creating-a-sysimage-using-PackageCompiler) with [PackageCompiler.jl](https://github.com/JuliaLang/PackageCompiler.jl):

> [@Secure systems: an alternate use case for PackageCompiler.jl](https://discourse.julialang.org/t/secure-systems-an-alternate-use-case-for-packagecompiler-jl/90955):
>
> Julia’s package manager relies on internet access, so it can be challenging to make dependencies available on secure systems. [PackageCompiler.jl](https://github.com/JuliaLang/PackageCompiler.jl) compiles Julia code ahead of time, primarily for [improved performance in certain workflows](https://julialang.github.io/PackageCompiler.jl/dev/index.html#PackageCompiler). In particular, [generating a sysimage](https://julialang.github.io/PackageCompiler.jl/dev/sysimages.html) produces a performant stand-alone Julia session, and since its [main drawback (version locking)](https://julialang.github.io/PackageCompiler.jl/dev/sysimages.html#Drawbacks-to-custom-sysimages) is mitigated on secure systems, it seems to be the best approach for putting a Julia session on a system without internet access or…

[Previous page](https://discourse.julialang.org/t/offline-installation-of-julia-packages/20083.md?page=1)
