Archive-Tar

Archive::Tar(3p) Perl Programmers Reference Guide Archive::Tar(3p)

Archive-Tar

Archive::Tar(3p) Perl Programmers Reference Guide Archive::Tar(3p) # Archive::Tar(3p) Perl Programmers Reference Guide Archive::Tar(3p) NNAAMMEE # Archive::Tar - module for manipulations of tar archives SSYYNNOOPPSSIISS # use Archive::Tar; my $tar = Archive::Tar->new; $tar->read('origin.tgz'); $tar->extract(); $tar->add_files('file/foo.pl', 'docs/README'); $tar->add_data('file/baz.txt', 'This is the contents now'); $tar->rename('oldname', 'new/file/name'); $tar->chown('/', 'root'); $tar->chown('/', 'root:root'); $tar->chmod('/tmp', '1777'); $tar->write('files.tar'); # plain tar $tar->write('files.tgz', COMPRESS_GZIP); # gzip compressed $tar->write('files.tbz', COMPRESS_BZIP); # bzip2 compressed $tar->write('files.txz', COMPRESS_XZ); # xz compressed DDEESSCCRRIIPPTTIIOONN # Archive::Tar provides an object oriented mechanism for handling tar files. ...