Library to read/write TAR files

M

Michel Casabianca

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
 
E

El Gato

Michel said:
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/
 
M

Michel Casabianca

Le 1 d=E9c. 06 =E0 04:29, El Gato a =E9crit :
Do they have to be tar files, or can they be zips?

http://rubyzip.sourceforge.net/

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

Thanks
 
J

Jeremy Hinegardner

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?

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
 
M

Michel Casabianca

Le 3 d=E9c. 06 =E0 19:19, Jeremy Hinegardner a =E9crit :
Archive::Tar::Minitar is what you're looking for I believe. Its =20
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) =20
archive
files.

I've used it several times with great success.

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

Believe me, I do!

Regards
 
A

Austin Ziegler

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?

-austin
 
M

Michel Casabianca

Le 4 d=E9c. 06 =E0 03:57, Austin Ziegler a =E9crit :
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?

Minitar is exactly what I needed, thanks.

Regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top