/Archive-Deb

Module for reading Debian .deb files

Primary LanguagePerl

Archive::Deb static linux

Module for reading Debian .deb files

SYNOPSIS

use Archive::Deb;

my $deb = Archive::Deb->new( "foo.deb" );
say $_ for $deb->data->files;

DESCRIPTION

This is a simple interface for peeking into a Debian .deb package/archive.

CONSTRUCTOR

new

my $deb = Archive::Deb->new( $path );

Given the path to a Debian .deb package/archive this will create a new instance of Archive::Deb. Will warn if something unexpected is found and will throw an exception if $path is invalid or missing.

METHODS

version

my $version = $deb->version;

Returns the Debian binary version. This is 2.0 for recent versions of Debian.

data

my $peek = $deb->data;

Returns an instance of Archive::Libarchive::Peek for the data section of the Debian archive. This can be used to list the files in the archive, or iterate over them.

data_extractor

my $extract = $deb->data_extractor;

Returns an instance of Archive::Libarchive::Extract for the data section of the Debian archive. This can be used to extract the files from the archive.

SEE ALSO

AUTHOR

Graham Ollis plicease@cpan.org

COPYRIGHT AND LICENSE

This software is copyright (c) 2022 by Graham Ollis.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.