Library to read/write TAR files

Hello,

I'm looking for a library to read/write TAR files. I've had a look on RubyForge and searched for one on Google but found nothing (except an old library that doesn't seem to be maintained anymore). Does anyone know such a library?

Thanks

···

--
Michel Casabianca

Michel Casabianca wrote:

Hello,

I'm looking for a library to read/write TAR files. I've had a look on
RubyForge and searched for one on Google but found nothing (except an
old library that doesn't seem to be maintained anymore). Does anyone
know such a library?

Are you willing to make system calls? I ask because if you do it in pure
Ruby, it will not be very fast. Tar does quite a lot of intensive
processing, and if you try to integrate the compression schemes it uses,
all the more so.

···

--
Paul Lutus
http://www.arachnoid.com

Michel Casabianca wrote:

Hello,

I'm looking for a library to read/write TAR files. I've had a look on
RubyForge and searched for one on Google but found nothing (except an
old library that doesn't seem to be maintained anymore). Does anyone
know such a library?

Thanks

Do they have to be tar files, or can they be zips?

http://rubyzip.sourceforge.net/

···

--
Posted via http://www.ruby-forum.com/\.

Archive::Tar::Minitar is what you're looking for I believe. Its part of
the ruwiki project.

    http://rubyforge.org/projects/ruwiki/

% gem search --remote minitar
archive-tar-minitar (0.5.1, 0.5.0)
    Provides POSIX tarchive management from Ruby programs

And from the RDoc for it:

    Archive::Tar::Minitar is a pure-Ruby library and command-line
    utility that provides the ability to deal with POSIX tar(1) archive
    files.

I've used it several times with great success.

enjoy,

-jeremy

···

On Fri, Dec 01, 2006 at 06:30:12AM +0900, Michel Casabianca wrote:

Hello,

I'm looking for a library to read/write TAR files. I've had a look on
RubyForge and searched for one on Google but found nothing (except an
old library that doesn't seem to be maintained anymore). Does anyone
know such a library?

--

Jeremy Hinegardner jeremy@hinegardner.org

Yes. Archive::Tar::Minitar. If I ever get TRUG hackathons going again,
we'll be moving forward on a libarchive port to Ruby.

What do you need?

-austin

···

On 11/30/06, Michel Casabianca <michel.casabianca@gmail.com> wrote:

I'm looking for a library to read/write TAR files. I've had a look on
RubyForge and searched for one on Google but found nothing (except an
old library that doesn't seem to be maintained anymore). Does anyone
know such a library?

--
Austin Ziegler * halostatue@gmail.com * http://www.halostatue.ca/
               * austin@halostatue.ca * You are in a maze of twisty little passages, all alike. // halo • statue
               * austin@zieglers.ca

I already generate zip files (and prefer this format over tar.gz), but I want to be able to generate tar files in a system independant way (that's why I don't call it using system).

Thanks

···

Le 1 déc. 06 à 04:29, El Gato a écrit :

Michel Casabianca wrote:

I'm looking for a library to read/write TAR files. I've had a look on
RubyForge and searched for one on Google but found nothing (except an
old library that doesn't seem to be maintained anymore). Does anyone
know such a library?

Do they have to be tar files, or can they be zips?

http://rubyzip.sourceforge.net/

--
Michel Casabianca
michel.casabianca@gmail.com

I'm looking for a library to read/write TAR files. I've had a look on
RubyForge and searched for one on Google but found nothing (except an
old library that doesn't seem to be maintained anymore). Does anyone
know such a library?

Archive::Tar::Minitar is what you're looking for I believe. Its part of
the ruwiki project.

    http://rubyforge.org/projects/ruwiki/

% gem search --remote minitar
archive-tar-minitar (0.5.1, 0.5.0)
    Provides POSIX tarchive management from Ruby programs

And from the RDoc for it:

    Archive::Tar::Minitar is a pure-Ruby library and command-line
    utility that provides the ability to deal with POSIX tar(1) archive
    files.

I've used it several times with great success.

Thank you very much, this is exactly what I was looking for!

enjoy,

Believe me, I do!

Regards

···

Le 3 déc. 06 à 19:19, Jeremy Hinegardner a écrit :

On Fri, Dec 01, 2006 at 06:30:12AM +0900, Michel Casabianca wrote:

--
Michel Casabianca
michel.casabianca@gmail.com

Minitar is exactly what I needed, thanks.

Regards

···

Le 4 déc. 06 à 03:57, Austin Ziegler a écrit :

On 11/30/06, Michel Casabianca <michel.casabianca@gmail.com> wrote:

I'm looking for a library to read/write TAR files. I've had a look on
RubyForge and searched for one on Google but found nothing (except an
old library that doesn't seem to be maintained anymore). Does anyone
know such a library?

Yes. Archive::Tar::Minitar. If I ever get TRUG hackathons going again,
we'll be moving forward on a libarchive port to Ruby.

What do you need?

--
Michel Casabianca
michel.casabianca@gmail.com