# Cross-platform unpacking of rar archive?

**URL:** <https://discourse.julialang.org/t/cross-platform-unpacking-of-rar-archive/41717>\
**Category:** General Usage\
**Tags:** question\
**Created:** [June 19, 2020, 9:47am UTC](https://discourse.julialang.org/t/cross-platform-unpacking-of-rar-archive/41717 "2020-06-19T09:47:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbrea](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jbrea/32/3879_2.png) [@jbrea](https://discourse.julialang.org/u/jbrea)\
**Post date:** [June 19, 2020, 9:47am UTC](https://discourse.julialang.org/t/cross-platform-unpacking-of-rar-archive/41717/1 "2020-06-19T09:47:28Z")

</div>

Is there are a cross-platform way to unpack [rar](https://en.wikipedia.org/wiki/RAR_(file_format)) archives in julia? I saw there is the unregistered [LibArchive.jl](https://github.com/yuyichao/LibArchive.jl), but I got build errors in julia 1.4.1. Is there an alternative?

EDIT: I found [p7zip\_jll](https://github.com/JuliaBinaryWrappers/p7zip_jll.jl) in the meantime. Unfortunately it seems to only ship 7za (which doesn’t support rar).

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [June 19, 2020, 12:08pm UTC](https://discourse.julialang.org/t/cross-platform-unpacking-of-rar-archive/41717/2 "2020-06-19T12:08:59Z")

</div>

> [@jbrea](#):
>
> EDIT: I found [p7zip\_jll](https://github.com/JuliaBinaryWrappers/p7zip_jll.jl) in the meantime. Unfortunately it seems to only ship 7za (which doesn’t support rar).

What would you need to deal with RAR archives?

---

<div class="post-metadata">

**Author:** ![jbrea](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jbrea/32/3879_2.png) [@jbrea](https://discourse.julialang.org/u/jbrea)\
**Post date:** [June 19, 2020, 12:11pm UTC](https://discourse.julialang.org/t/cross-platform-unpacking-of-rar-archive/41717/3 "2020-06-19T12:11:33Z")

</div>

> What would you need to deal with RAR archives?

[7z](https://superuser.com/questions/458643/unzip-rar-from-command-line-with-7-zip).

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [June 19, 2020, 12:19pm UTC](https://discourse.julialang.org/t/cross-platform-unpacking-of-rar-archive/41717/4 "2020-06-19T12:19:03Z")

</div>

Well, that’s a different software which runs only on Windows as far as I know

---

<div class="post-metadata">

**Author:** ![jbrea](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jbrea/32/3879_2.png) [@jbrea](https://discourse.julialang.org/u/jbrea)\
**Post date:** [June 19, 2020, 12:31pm UTC](https://discourse.julialang.org/t/cross-platform-unpacking-of-rar-archive/41717/5 "2020-06-19T12:31:00Z")

</div>

Hm, maybe the link is misleading. On arch linux, the package p7zip installs both 7z and 7za as command line tools.

---

<div class="post-metadata">

**Author:** ![yuyichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuyichao/32/20_2.png) [@yuyichao](https://discourse.julialang.org/u/yuyichao)\
**Post date:** [June 19, 2020, 1:35pm UTC](https://discourse.julialang.org/t/cross-platform-unpacking-of-rar-archive/41717/6 "2020-06-19T13:35:45Z")

</div>

LibArchive.jl fully works on 1.4 and master and supports rar. However, I’m too lazy to write the support for the new binary download infrastructure since I always use system libraries.
