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

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

am 13.09.2005 14:18:23 von Jari Aalto

[Please retain CC if you reply]

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

foo-1.1-tar.bz2

There seem to be CPAN modules

Compress::Bzip2
File::Archive
Archive::Tar

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

Jari

--
Use Licenses! http://www.linuxjournal.com/article.php?sid=6225
Which Licence? http://www.linuxjournal.com/article.php?sid=4825
OSI Licences http://www.opensource.org/licenses/

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

am 14.09.2005 00:34:20 von Sisyphus

"Jari Aalto" wrote in message
news:mzmhgnzk.fsf@cante.net...
>
> [Please retain CC if you reply]
>
> What is are the modules to work efficiently with archives
> that used bzip2 compression?
>
> foo-1.1-tar.bz2
>
> There seem to be CPAN modules
>
> Compress::Bzip2
> File::Archive
> Archive::Tar
>
> But the integration of these to handle bz2 archives is not mentioned.
> Could someone point me to example code or further ideas?
>

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'.

Cheers,
Rob