0

Is there a ruby gem/library that can extra .tbz files?

This will specifically be within a Rails app, if that's relevant.

I've aware of Rubyzip for .zip files, but haven't found a way to extract .tbz files.

Shpigford
  • 24,748
  • 58
  • 163
  • 252

1 Answers1

1

Have you tried the bzip2-ruby gem for decompressing it to a tar?

You can then use archive-tar-minitar to untar it.

In the subject, you ask about downloading -- but you don't repeat that in your actual question. Here's a question about downloading within a Ruby script.

Community
  • 1
  • 1
Translunar
  • 3,739
  • 33
  • 55