# Install a packages from a list

**URL:** https://discourse.julialang.org/t/install-a-packages-from-a-list/30920
**Category:** General Usage
**Created:** [November 10, 2019, 3:18pm UTC](https://discourse.julialang.org/t/install-a-packages-from-a-list/30920 "2019-11-10T15:18:56Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![ilango3](https://avatars.discourse-cdn.com/v4/letter/i/b77776/32.png) [@ilango3](https://discourse.julialang.org/u/ilango3)
#### Post date: [November 10, 2019, 3:18pm UTC](https://discourse.julialang.org/t/install-a-packages-from-a-list/30920/1 "2019-11-10T15:18:56Z")

</div>

Hi ,  
I need to install packages from a list.  
I was wondering if julia has an a command to install from list.  
like python’s "pip install -r requirements.txt " ?

Thanks.

---

<div class="post-metadata">

### Author: ![fipelle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fipelle/32/4772_2.png) [@fipelle](https://discourse.julialang.org/u/fipelle)
#### Post date: [November 10, 2019, 3:29pm UTC](https://discourse.julialang.org/t/install-a-packages-from-a-list/30920/2 "2019-11-10T15:29:44Z")

</div>

Yes.

You can use `Pkg` to install multiple packages ([https://github.com/JuliaLang/julia/issues/19591](https://github.com/JuliaLang/julia/issues/19591)). For instance: `Pkg.add(["Combinatorics", "TaylorSeries"])`.

If your list sits in a text file, you can just load it and pass it to `Pkg.add`.

---

<div class="post-metadata">

### Author: ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)
#### Post date: [November 10, 2019, 3:29pm UTC](https://discourse.julialang.org/t/install-a-packages-from-a-list/30920/3 "2019-11-10T15:29:52Z")

</div>

I don’t know of any built in command like this. But writing a little script for this seems simple and straightforward: read the file and use `Pkg.add(pkgname)` to add them one after another.

---

<div class="post-metadata">

### Author: ![ilango3](https://avatars.discourse-cdn.com/v4/letter/i/b77776/32.png) [@ilango3](https://discourse.julialang.org/u/ilango3)
#### Post date: [November 10, 2019, 3:40pm UTC](https://discourse.julialang.org/t/install-a-packages-from-a-list/30920/4 "2019-11-10T15:40:51Z")

</div>

Ok , I will try it.  
Thank you for your help

---

<div class="post-metadata">

### Author: ![Tero\_Frondelius](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tero_frondelius/32/7629_2.png) [@Tero\_Frondelius](https://discourse.julialang.org/u/Tero_Frondelius)
#### Post date: [November 10, 2019, 3:43pm UTC](https://discourse.julialang.org/t/install-a-packages-from-a-list/30920/5 "2019-11-10T15:43:31Z")

</div>

Of course, the `Manifest.toml` is made for this purpose or actually `Project.toml` depending how you will want to use the list.

---

<div class="post-metadata">

### Author: ![prabin-sr](https://avatars.discourse-cdn.com/v4/letter/p/2acd7d/32.png) [@prabin-sr](https://discourse.julialang.org/u/prabin-sr)
#### Post date: [March 23, 2020, 4:46am UTC](https://discourse.julialang.org/t/install-a-packages-from-a-list/30920/6 "2020-03-23T04:46:07Z")

</div>

@ilango3 The We can create a **requirements.txt** Python equivalent by creating a julia script  
**packages.jl**

The contents of the _packages.jl_ will be,

```julia
using Pkg

dependencies = [
    "IJulia",
    "Genie"
]

Pkg.add(dependencies)

```

We can add more dependencies in this list.  
This can be executable with the command **julia packages.jl**

---

<div class="post-metadata">

### Author: ![oxinabox](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oxinabox/32/206603_2.png) [@oxinabox](https://discourse.julialang.org/u/oxinabox)
#### Post date: [March 23, 2020, 7:01am UTC](https://discourse.julialang.org/t/install-a-packages-from-a-list/30920/7 "2020-03-23T07:01:39Z")

</div>

note for most purposes the julia equiv of a `requirements.txt` is a `Project.toml`  
but you can’t write one by hand.
