DPKG::Parse::Packages - Parse the Packages file
use DPKG::Parse::Packages;
my $packages = DPKG::Parse::Packages->new(
'filename' => '/usr/src/packages/Packages',
);
while (my $entry = $packages->next_package) {
print $entry->package . " " . $entry->version . "\n";
}
my $postfix = $packages->get_package('name' => 'postfix');
the DPKG::Parse::Packages manpage parses a dpkg/apt style Packages file and turns each entry into a the DPKG::Parse::Entry manpage object.
See the DPKG::Parse manpage for more information on the get_package and next_package methods.
See the DPKG::Parse::Entry manpage for more information on the entry objects.
Creates a new DPKG::Parse::Packages object. By default, it tries to open /usr/src/packages/Packages.
the DPKG::Parse manpage, the DPKG::Parse::Entry manpage
Adam Jacob, holoway@cpan.org
This library is free software. You can redistribute it and/or modify it under the same terms as perl itself.