Arch::Tarball(3pm)
π Arch::Tarball π
okay so bestie, this is the Arch::Tarball page from the User Contributed Perl Documentation β yes, a whole module for making and poking at tarballs, and honestly? iconic.
β¨ NAME β¨
Arch::Tarball β it's an interface to create and work with tarballs π
πΈ SYNOPSIS πΈ
use Arch::Tarball
my $tarball = Arch::Tarball->new;
my $pipe = $tarball->create(
dir => '/path/to/subdir-to-pack',
base_name => 'new-subdir-to-pack',
pipe => 1,
);
look at her go π
π¦ DESCRIPTION π¦
Arch::Tarball gives you an object oriented interface to work with standard gzipped tarballs β like, to create, examine or extract them. three whole moods.
note: functionality only gets added when it's needed, so a lot of features are currently not implemented. she's a work in progress, and we respect that π
π METHODS π
The following functions are available:
new, create, extract, list.
π new %opts
Creates a new Arch::Tarball object. new object, new me β¨
The following parameters can be set via %opts:
tarβ the name of the tar executable. Defaults to"tar".fileβ the filename of the Tarball.
π create %opts
Creates a new tarball (tar.gz) from a given directory structure. packing it UP π
create understands the following options:
dir(mandatory) β specifies the base directory for the tarball. The given directory and recursively its content will be added to the tarball. The directory's basename will be used as the first and the only subdirectory in the tarball. mandatory bestie, do not skip her πbase_nameβ lets the programmer specify a different base directory name for the tarball content than the basename ofdir. In this case, a'cp'process is launched to temporarily rename the last element ofdir. sneaky little rename moment.pipeβ when set,createdoes not create a physical tarball but writes the tarball's content to a newly created pipe. The pipe is returned by thecreatemethod. so she hands you the pipe directly, no middleman π«Ά
note: currently the pipe option is mandatory. like, not optional. mandatory mandatory.
π§ extract %opts
Extracts the tarball to a given target directory, specified by the dir option. If the dir option is not given, a temporary directory is created that will hold the extracted dirs/files. This directory is returned. unpacking szn π
The file option specifies the tarball file name. It may be given in the constructor instead β your call, either vibe works.
π list %opts (not implemented yet)
Returns a list of files and directories in the tarball. one day, bestie. one day π
π BUGS π
Most functionality is currently not implemented. If you need part of the missing functionality, please contact the authors.
Patches are greatly appreciated. fr fr, send the patch, be the main character π
π AUTHORS π
Mikhael Goikhman (migo@homemail.com--Perl-GPL/arch-perl--devel).
Enno Cramer (uebergeek@web.de--2003/arch-perl--devel).
and that's the whole page, bestie π no cap. this one's from perl v5.20.2, dated 2005-04-22 β vintage, honestly, and still serving. go make a tarball. slay πβ¨π¦
π¦ where this page comes from
- ubuntu jammy: libarch-perl 0.5.2-2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms