DPKG::Parse(3pm) | User Contributed Perl Documentation | DPKG::Parse(3pm) |
DPKG::Parse - Parse various dpkg files into Perl Objects
use DPKG::Parse::Status; my $status = DPKG::Parse::Status->new; while (my $entry = $status->next_package) { print $entry->package . " " . $entry->version . "\n"; } use DPKG::Parse::Available; my $available = DPKG::Parse::Available->new; while (my $entry = $available->next_package) { print $entry->package . " " . $entry->version . "\n"; }
DPKG::Parse contains utilities to parse the various files created by dpkg and turn them into helpful Perl objects. Current files understood by various DPKG::Parse modules:
/var/lib/dpkg/status - DPKG::Parse::Status /var/lib/dpkg/available - DPKG::Parse::Available Packages.gz - DPKG::Parse::Packages
See each module's documentation for particulars - You should not be calling DPKG::Parse directly.
DPKG::Parse::Status, DPKG::Parse::Available, DPKG::Parse::Packages, 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 |