# How to Install all Packages in a Project into the General Julia Manifest

**URL:** https://discourse.julialang.org/t/how-to-install-all-packages-in-a-project-into-the-general-julia-manifest/84143
**Category:** General Usage
**Tags:** question, pkg
**Created:** [July 13, 2022, 2:10am UTC](https://discourse.julialang.org/t/how-to-install-all-packages-in-a-project-into-the-general-julia-manifest/84143 "2022-07-13T02:10:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tawheeler](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tawheeler/32/17657_2.png) [@tawheeler](https://discourse.julialang.org/u/tawheeler)
#### Post date: [July 13, 2022, 2:10am UTC](https://discourse.julialang.org/t/how-to-install-all-packages-in-a-project-into-the-general-julia-manifest/84143/1 "2022-07-13T02:10:07Z")

</div>

I have a bunch of packages that I would like my general julia environment to have.

To achieve this I have created Manifest and Project files with the necessary packages and dependencies. How would I go about installing all of those packages in the general Julia environment such that I have access to them without having to call `activate` when I start Julia?

I want something similar to:

```julia
using Pkg
cd("/path/to/my/files")
Pkg.activate(".")
Pkg.instantiate()
Pkg.precompute()

```

except I want to run it once and have it install everything into the general Julia environment.

Is such a thing possible? Thanks!

---

<div class="post-metadata">

### Author: ![affans](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/affans/32/11911_2.png) [@affans](https://discourse.julialang.org/u/affans)
#### Post date: [July 13, 2022, 2:33am UTC](https://discourse.julialang.org/t/how-to-install-all-packages-in-a-project-into-the-general-julia-manifest/84143/2 "2022-07-13T02:33:20Z")

</div>

Sorry its a bit confusing. Why do you activate your current folder if you want to work in a global environment?

---

<div class="post-metadata">

### Author: ![tawheeler](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tawheeler/32/17657_2.png) [@tawheeler](https://discourse.julialang.org/u/tawheeler)
#### Post date: [July 13, 2022, 2:59am UTC](https://discourse.julialang.org/t/how-to-install-all-packages-in-a-project-into-the-general-julia-manifest/84143/3 "2022-07-13T02:59:55Z")

</div>

Great question. I am trying to create a docker container containing all of the packages that I need, and I want those packages to be available inside the docker container any time I run a julia command. Hence, I don’t want to have to run `activate` as part of every julia command with future use of said docker container.

> Why do you activate your current folder

I am activating the current folder simply because that is how I would go about installing everything for a package into the package’s environment. I don’t want the package’s environment, and simply running `Pkg.instantiate()` locally doesn’t work.

---

<div class="post-metadata">

### Author: ![tawheeler](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tawheeler/32/17657_2.png) [@tawheeler](https://discourse.julialang.org/u/tawheeler)
#### Post date: [July 13, 2022, 3:17am UTC](https://discourse.julialang.org/t/how-to-install-all-packages-in-a-project-into-the-general-julia-manifest/84143/4 "2022-07-13T03:17:11Z")

</div>

I think I solved my problem.

I now do the following:

```julia
RUN julia -e "using Pkg; Pkg.instantiate()"
COPY Project.toml /user/.julia/environments/v1.7/Project.toml
COPY Manifest.toml /user/.julia/environments/v1.7/Manifest.toml
RUN julia -e "using Pkg; Pkg.instantiate(); Pkg.precompile()"

```

The first line produces my `.julia` directory, the next two are to copy over my project and manifest files, and the final is to instantiate and precompile. It appears to have worked - thanks.
