logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

DPKG::Parse::Available - Parse the "available" file

Author

       Adam Jacob, "holoway@cpan.org"

Description

       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.

License

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

perl v5.34.0                                       2022-06-13                        DPKG::Parse::Available(3pm)

Methods

       new('filename' => '/var/lib/dpkg/available')
           Creates a new DPKG::Parse::Available object.  By default, it tries to open /var/lib/dpkg/available.

Name

       DPKG::Parse::Available - Parse the "available" file

See Also

       DPKG::Parse, DPKG::Parse::Entry

Synopsis

           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');

See Also