DPKG::Parse::Status - Parse the "status" file
use DPKG::Parse::Status;
my $status = DPKG::Parse::Status->new;
while (my $entry = $status->next_package) {
print $entry->package . " " . $entry->version . "\n";
}
my $postfix = $status->get_package('name' => 'postfix');
my $postfix = $status->get_installed('name' => 'postfix');
the DPKG::Parse::Status manpage parses a dpkg "status" file and turns each entry into a the DPKG::Parse::Entry manpage object. By default, it uses the Debian default location of "/var/lib/dpkg/status".
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::Status object. By default, it tries to open /var/lib/dpkg/status.
Calls DPKG::Parse::parse, and populates the "installed" accessor with a hash of packages whose "status" is "install ok installed".
Returns a the DPKG::Parse::Entry manpage object for the given package, or undef if it's not found.
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.