# 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:** 1\
**Showing post:** 6

<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:** [June 22, 2023, 2:24pm UTC](https://discourse.julialang.org/t/install-packages-on-machine-not-connected-to-internet/100650/6 "2023-06-22T14:24:32Z")

</div>

You can try the following.

First, on the machine which has internet connection, run the following:

```julia
$ JULIA_DEPOT_PATH=offline_depot julia
julia> ]
pkg> add StatsBase MultivariateStats # these are just examples, add all the packages you will need here
pkg> <Ctrl-D>

```

Then copy the `offline_depot` directory (created by Julia in the previous step) onto the machine you will use in offline mode. Then start Julia like this:

```julia
$ JULIA_DEPOT_PATH=<path-to-your>/offline_depot JULIA_PKG_OFFLINE=true julia
julia> using MultivariateStats # use the preinstalled packages here

```

Hope that helps.

---

_[View the full topic](https://discourse.julialang.org/t/install-packages-on-machine-not-connected-to-internet/100650)._
