Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Simple ruby wrappers for LZMA compression and decompression. Fully functional, on Ruby, JRuby, and MacRuby.

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 ext
Octocat-spinner-32 java
Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.markdown
Octocat-spinner-32 Rakefile
Octocat-spinner-32 VERSION
Octocat-spinner-32 ruby-lzma.gemspec

LZMA Ruby bindings

Simple LZMA compression and decompression routines. No features to speak of presently. Works in Ruby 1.8.6+, Ruby 1.9.1+, JRuby 1.4.1+, and MacRuby 0.6+. All versions are compatible with each other, and with other LZMA implementations.

Send questions to

Installation (MRI)

gem install ruby-lzma


git clone
cd ruby-lzma
rake install

Installation (JRuby)

jruby -S gem install ruby-lzma

Installation (MacRuby)

macgem install ruby-lzma


Compressing String Data:

require 'lzma'
compressed = LZMA.compress('data to compress')

Decompressing String Data:

require 'lzma'
decompressed = LZMA.decompress("compressed.lzma"))
Something went wrong with that request. Please try again.