DPKG::Parse::Available(3pm)

DPKG::Parse::Available3pm

Parse the "available" file

Usage

    use DPKG::Parse::Available;
    my $available = DPKG::Parse::Available->new;
    while (my $entry = $available->next_package) {
        print $entry->package . " " . $entry->version . "\n";
    }
    my $postfix = $available->get_package('name' => 'postfix');

Overview

DPKG::Parse::Available parses a dpkg "available" file and turns each entry into a DPKG::Parse::Entry object. By default, it uses the Debian default location of "/var/lib/dpkg/available".

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.

Methods

new('filename' => '/var/lib/dpkg/available')

Creates a new DPKG::Parse::Available object. By default, it tries to open /var/lib/dpkg/available.

Releases

5 releases since Debian 9 (Stretch); the text changed 2 times.

  1. 9
  2. 10–11
  3. 12–13

Author

Adam Jacob, "[email protected]"

License

This library is free software. You can redistribute it and/or modify it under the same terms as perl itself.

From libdpkg-parse-perl 0.03-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.