# Download/unzip a .zip file

**URL:** https://discourse.julialang.org/t/download-unzip-a-zip-file/21271
**Category:** General Usage
**Tags:** zip
**Created:** [February 27, 2019, 4:58pm UTC](https://discourse.julialang.org/t/download-unzip-a-zip-file/21271 "2019-02-27T16:58:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mthelm85](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mthelm85/32/224164_2.png) [@mthelm85](https://discourse.julialang.org/u/mthelm85)
#### Post date: [February 27, 2019, 4:58pm UTC](https://discourse.julialang.org/t/download-unzip-a-zip-file/21271/1 "2019-02-27T16:58:10Z")

</div>

I set out to download/unzip a .zip file from a URL today and never thought it would be such a problem. I get an error when installing ZipFile.jl and there seems to be a lot of complaints about that package anyways. Can someone recommend a good way to do this (is there really not another package out there)?

I simply want to pass a URL to a function and then download/unzip the file that is downloaded. The reason I want to do this programmatically is that new files are uploaded monthly so I’d rather have my code get the latest version of the file every time it runs, rather than having to do this manually.

---

<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: [February 27, 2019, 5:06pm UTC](https://discourse.julialang.org/t/download-unzip-a-zip-file/21271/2 "2019-02-27T17:06:14Z")

</div>

> [@mthelm85](#):
>
> Can someone recommend a good way to do this (is there really not another package out there)?

Frankly, I would just create a temporary directory, and call the relevant programs (eg `wget` and `unzip`) from Julia. If you OS has these tools or your can install them, this should be very robust (you should check exit codes for success).

---

<div class="post-metadata">

### Author: ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)
#### Post date: [February 13, 2020, 3:33pm UTC](https://discourse.julialang.org/t/download-unzip-a-zip-file/21271/3 "2020-02-13T15:33:49Z")

</div>

Julia has `download` as a wrapper for `wget`. Does something similar exists for `unzip` ? (I would like to avoid to recur directly to OS commands)

---

<div class="post-metadata">

### Author: ![Nosferican](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nosferican/32/9275_2.png) [@Nosferican](https://discourse.julialang.org/u/Nosferican)
#### Post date: [August 11, 2021, 7:51pm UTC](https://discourse.julialang.org/t/download-unzip-a-zip-file/21271/4 "2021-08-11T19:51:08Z")

</div>

[https://github.com/samoconnor/InfoZIP.jl](https://github.com/samoconnor/InfoZIP.jl)
