# How to Add, Build and Precompile Package that is downloaded from github in Julia?

**URL:** https://discourse.julialang.org/t/how-to-add-build-and-precompile-package-that-is-downloaded-from-github-in-julia/101949
**Category:** General Usage
**Tags:** package
**Created:** [July 23, 2023, 4:54am UTC](https://discourse.julialang.org/t/how-to-add-build-and-precompile-package-that-is-downloaded-from-github-in-julia/101949 "2023-07-23T04:54:23Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)
#### Post date: [July 23, 2023, 4:54am UTC](https://discourse.julialang.org/t/how-to-add-build-and-precompile-package-that-is-downloaded-from-github-in-julia/101949/1 "2023-07-23T04:54:23Z")

</div>

I was adding this package:

> **[GitHub - luchr/ComplexPortraits.jl: Domain coloring for complex functions](https://github.com/luchr/ComplexPortraits.jl)**
>
> Domain coloring for complex functions. Contribute to luchr/ComplexPortraits.jl development by creating an account on GitHub.

```julia
using Pkg
Pkg.add(PackageSpec(url="https://github.com/luchr/ComplexPortraits.jl", rev="master"))

```

it is cloning the github and build it and precompile it.

If I download a package (any Julia package form github) in zip, how to add it, precompile and build ?

For example this DynamicalSystems:

> **[GitHub - JuliaDynamics/DynamicalSystems.jl: Award winning software library...](https://github.com/JuliaDynamics/DynamicalSystems.jl)**
>
> Award winning software library for nonlinear dynamics and nonlinear timeseries analysis - GitHub - JuliaDynamics/DynamicalSystems.jl: Award winning software library for nonlinear dynamics and nonli...

can I just download from the github and do some commands to make it build and precompile based on the zip that I downloaded? Do I need to download the dependencies packages related to DynamicalSystems too?

---

<div class="post-metadata">

### Author: ![mrufsvold](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mrufsvold/32/31600_2.png) [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)
#### Post date: [July 23, 2023, 5:17am UTC](https://discourse.julialang.org/t/how-to-add-build-and-precompile-package-that-is-downloaded-from-github-in-julia/101949/2 "2023-07-23T05:17:26Z")

</div>

You can just do `Pkg.add("path/to/downloaded/directory")` and Pkg will add the package, download dependencies from its `Project.toml` file and be good to go.

If you intend to edit the package code locally, you can also use `Pkg.dev` so that it stays in sync with your changes.

---

<div class="post-metadata">

### Author: ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)
#### Post date: [July 23, 2023, 5:20am UTC](https://discourse.julialang.org/t/how-to-add-build-and-precompile-package-that-is-downloaded-from-github-in-julia/101949/3 "2023-07-23T05:20:31Z")

</div>

I want to know is it possible to add (offline) the whole package’ dependencies from bottom food chain that has no dependency ? so no need to download dependencies.
