Debian::Packages - An interface to a Debian Packages file
Version 0.03
use Debian::Packages;
# create object and pass a Packages file my $packages_file = DebianPackages->new(filename => '/var/www/apt/dists/sid/main/binary-i386/Packages'); my @packages_array = $packages_file->read; print "First found package is $packages_array[0]\n";
Read our Packages file, place into an array of newlines.
DebianPackages is an interface to a Debian Packages file. The Debian Packages file is a list of packages included in a Debian, or Debian based, distribution. This is the file used by APT and other tools to query and install packages on a Debian system. The Packages file is usually created by one of the tools that manages a debian package repository, like reprepro or dak for example. It has limited use for end users since apt and aptitude are better and more complete tools.
Jeremiah C. Foster, <jeremiah@jeremiahfoster.com>
Copyright 2009 Jeremiah C. Foster, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Parse::Debian::Packages (Does roughly the same thing, but is unmaintained.)_
To install Debian::Packages, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Debian::Packages
CPAN shell
perl -MCPAN -e shell install Debian::Packages
For more information on module installation, please visit the detailed CPAN module installation guide.