DPKG::Parse::Status(3pm) | User Contributed Perl Documentation | DPKG::Parse::Status(3pm) |
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');
DPKG::Parse::Status parses a dpkg "status" file and turns each entry into a DPKG::Parse::Entry object. By default, it uses the Debian default location of "/var/lib/dpkg/status".
See DPKG::Parse for more information on the get_package and next_package methods.
See DPKG::Parse::Entry for more information on the entry objects.
DPKG::Parse, DPKG::Parse::Entry
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.
2022-06-13 | perl v5.34.0 |