# 7-zip or rar lib?

**URL:** <https://www.ruby-forum.com/t/7-zip-or-rar-lib/48190>\
**Category:** Ruby\
**Created:** [November 17, 2005, 4:41pm UTC](https://www.ruby-forum.com/t/7-zip-or-rar-lib/48190 "2005-11-17T16:41:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim.Ferrell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/54ee81/32.png) [@Tim.Ferrell](https://www.ruby-forum.com/u/Tim.Ferrell)\
**Post date:** [November 17, 2005, 4:41pm UTC](https://www.ruby-forum.com/t/7-zip-or-rar-lib/48190/1 "2005-11-17T16:41:52Z")

</div>

Does anyone know of libs for manipulating 7-zip or rar archives in ruby?  
I know there are C libs available but don’t really know where to start  
on wrapping them with ruby…

Thanks,  
Tim

---

<div class="post-metadata">

**Author:** ![Tim.Ferrell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/54ee81/32.png) [@Tim.Ferrell](https://www.ruby-forum.com/u/Tim.Ferrell)\
**Post date:** [November 17, 2005, 8:55pm UTC](https://www.ruby-forum.com/t/7-zip-or-rar-lib/48190/2 "2005-11-17T20:55:59Z")

</div>

The thing that got me asking is that I am a long time rar user but I  
noticed that latest 7-zip beat the best rar compression on a 60mb group  
of multimedia files by almost 8 megs…

There is also an unrar lib (with source) at  
[http://rarlab.com/rar\_add.htm](http://rarlab.com/rar_add.htm)

Thanks for looking into this!

Tim

---

<div class="post-metadata">

**Author:** ![Tim.Ferrell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/54ee81/32.png) [@Tim.Ferrell](https://www.ruby-forum.com/u/Tim.Ferrell)\
**Post date:** [November 18, 2005, 8:14pm UTC](https://www.ruby-forum.com/t/7-zip-or-rar-lib/48190/3 "2005-11-18T20:14:41Z")

</div>

Hi!

At Fri, 18 Nov 2005 00:40:20 +0900, Tim wrote:

> Does anyone know of libs for manipulating 7-zip or rar archives in  
> ruby? I know there are C libs available but don’t really know where  
> to start on wrapping them with ruby…

I’d like to add that it would also be helpful to have a library  
capable of manipulating Stuffit archives.

Josef ‘Jupp’ Schugt

---

<div class="post-metadata">

**Author:** ![Tim.Ferrell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/54ee81/32.png) [@Tim.Ferrell](https://www.ruby-forum.com/u/Tim.Ferrell)\
**Post date:** [November 18, 2005, 8:14pm UTC](https://www.ruby-forum.com/t/7-zip-or-rar-lib/48190/4 "2005-11-18T20:14:42Z")

</div>

Hi!

At Fri, 18 Nov 2005 00:40:20 +0900, Tim wrote:

> Does anyone know of libs for manipulating 7-zip or rar archives in  
> ruby? I know there are C libs available but don’t really know where  
> to start on wrapping them with ruby…

I’d like to add that it would also be helpful to have a library  
capable of manipulating Stuffit archives.

Josef ‘Jupp’ Schugt

---

<div class="post-metadata">

**Author:** ![Tim.Ferrell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/54ee81/32.png) [@Tim.Ferrell](https://www.ruby-forum.com/u/Tim.Ferrell)\
**Post date:** [November 17, 2005, 6:09pm UTC](https://www.ruby-forum.com/t/7-zip-or-rar-lib/48190/5 "2005-11-17T18:09:24Z")

</div>

On 11/17/05, Tim [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Does anyone know of libs for manipulating 7-zip or rar archives in ruby?  
> I know there are C libs available but don’t really know where to start  
> on wrapping them with ruby…

This sounds interesting. I will investigate options for using 7-zip.  
It seems they have LZMA SDK for supporting the 7z format.

I also found this: [http://www.unrarlib.org](http://www.unrarlib.org). This only supports opening  
(not creating) the RAR 2.0 format. Still it might be useful to have in  
Ruby, and shouldn’t be hard to wrap.

Ryan
