# Download and Install package in Julia

**URL:** <https://discourse.julialang.org/t/download-and-install-package-in-julia/6952>\
**Category:** New to Julia\
**Tags:** package\
**Created:** [November 8, 2017, 7:34am UTC](https://discourse.julialang.org/t/download-and-install-package-in-julia/6952 "2017-11-08T07:34:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahul\_Sharma](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@Rahul\_Sharma](https://discourse.julialang.org/u/Rahul_Sharma)\
**Post date:** [November 8, 2017, 7:34am UTC](https://discourse.julialang.org/t/download-and-install-package-in-julia/6952/1 "2017-11-08T07:34:59Z")

</div>

Is there a way to directly download and install a package in Julia without running `Pkg.add()` command?  
Thank you.

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [November 8, 2017, 7:38am UTC](https://discourse.julialang.org/t/download-and-install-package-in-julia/6952/2 "2017-11-08T07:38:59Z")

</div>

You can `git clone` it into your `.julia/v0.6/` directory (or any other directory you have added to `LOAD_PATH`).

---

<div class="post-metadata">

**Author:** ![Daneel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/daneel/32/175_2.png) [@Daneel](https://discourse.julialang.org/u/Daneel)\
**Post date:** [November 8, 2017, 7:43am UTC](https://discourse.julialang.org/t/download-and-install-package-in-julia/6952/3 "2017-11-08T07:43:03Z")

</div>

Some more complicated packages might require additional setup steps beyond simply cloning them. I’m not sure how to trigger these additional steps once it’s been cloned.

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [November 8, 2017, 8:08am UTC](https://discourse.julialang.org/t/download-and-install-package-in-julia/6952/4 "2017-11-08T08:08:49Z")

</div>

`Pkg.build("Package")`.

---

<div class="post-metadata">

**Author:** ![Daneel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/daneel/32/175_2.png) [@Daneel](https://discourse.julialang.org/u/Daneel)\
**Post date:** [November 8, 2017, 8:10am UTC](https://discourse.julialang.org/t/download-and-install-package-in-julia/6952/5 "2017-11-08T08:10:09Z")

</div>

🤦‍♂️

I guess my larger concern was if @Rahul_Sharma wanted to install something on a computer not connected to the internet. There are packages that download additional files when built. I believe PyPlot is at least one example.

---

<div class="post-metadata">

**Author:** ![Rahul\_Sharma](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@Rahul\_Sharma](https://discourse.julialang.org/u/Rahul_Sharma)\
**Post date:** [November 8, 2017, 12:00pm UTC](https://discourse.julialang.org/t/download-and-install-package-in-julia/6952/6 "2017-11-08T12:00:43Z")

</div>

The problem is my proxy. It is not allowing me to clone from the git. I downloaded the files of the package (`CoinOptServices`) and have the `.jl` files. I believe that for it to be a package, it must be `.ji` files. So,  
how do I use the .jl files to install the package?  
Thanks for your help.

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [November 8, 2017, 12:17pm UTC](https://discourse.julialang.org/t/download-and-install-package-in-julia/6952/7 "2017-11-08T12:17:17Z")

</div>

You are probably better off downloading the tarball or zip from github and extracting it, as opposed to getting the individual files one by one. Run `Pkg.build` as suggested above.

The `.ji` files will be generated as necessary, don’t worry about them.

That said, with packages getting updated frequently, fixing your net connection to allow `Pkg.add` etc to work may be the path of least resistance. See

> [@Update problems behind a corporate proxy with user and pass](https://discourse.julialang.org/t/update-problems-behind-a-corporate-proxy-with-user-and-pass/2560/):
>
> Hello, I know this question was asked a hundred times in the web, but I did’nt find any solution. So I ask again for my special situation: I istalled a fresh Julia 0.5.1 64-bit on my windows 7 computer. There is no program “git” or “git.exe” on the computer (which is part of several soutions) and it did not come with Julia. If I call e.g. Pkg.status() (or any other Pkg related command) then I get: INFO: Initializing package repository C:\Users\di29394\.julia\v0.5 INFO: Cloning METADATA from…

and related topics.
