packdrake - Simple Archive Extractor/Builder
This module is a compatibility wrapper around the new MDV::Packdrakeng module.
require packdrake; packdrake::cat_archive("/export/media/media_info/hdlist.cz", "/export/media/media_info/hdlist2.cz"); packdrake::list_archive("/tmp/modules.cz2"); my $packer = new packdrake("/tmp/modules.cz2"); $packer->extract_archive("/tmp", "file1.o", "file2.o"); my $packer = packdrake::build_archive (\*STDIN, "/lib/modules", "/tmp/modules.cz2", 400000, "bzip2", "bzip2 -d"); my $packer = packdrake::build_archive (\*STDIN, "/export/media/media_info/hdlist.cz", 400000, "gzip -9", "gzip -d");
packdrake is a very simple archive extractor and builder used by Mandrakesoft.
packdrake
Open the packdrake archive $file and return a packdrake object. Return undef on failure.
Extract files list into the specified directory.
Extract all files into the specified directory.
List files packed into achives given.
Build a new archive: - $input is a file handle to find file list to pack - $dir is the directory based where file are located - $archive is the archive filename to create - $blocksize is the size of compressed block - $compress is the program to use to compress data - $uncompress is the program to use to uncompress data
Dump data to STDOUT of files given as parameters, or all files if no files are specified
MDV::Packdrakeng.
Copyright (C) 2000-2004 Mandrakesoft <nanardon@mandriva.org>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
To install rpmtools, copy and paste the appropriate command in to your terminal.
cpanm
cpanm rpmtools
CPAN shell
perl -MCPAN -e shell install rpmtools
For more information on module installation, please visit the detailed CPAN module installation guide.