Archive::Tar and how to handle *.bz2 archives?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

[Please retain CC if you reply]

What is are the modules to work efficiently with archives
that used bzip2 compression?


There seem to be CPAN modules

But the integration of these to handle bz2 archives is not mentioned.
Could someone point me to example code or further ideas?


Use Licenses!
Which Licence?
OSI Licences /

Re: Archive::Tar and how to handle *.bz2 archives?

Quoted text here. Click to load it

Afaik Archive::Tar doesn't handle bz2 archives. So you'll have to use
Compress::Bzip2 to handle the compression/decompression, and Archive::Tar to
handle the tarring/untarring.

The test scripts that come with the source of both modules should contain
code that you'll find helpful. And there's also 'perldoc Archive::Tar' and
'perldoc Compress::Bzip2'.


Site Timeline