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::Packages - Parse the Packages file

Author

       Adam Jacob, "holoway@cpan.org"

Description

       DPKG::Parse::Packages parses a dpkg/apt style Packages file and turns each entry into a
       DPKG::Parse::Entry object.

       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::Packages(3pm)

Methods

       new('filename' => '/usr/src/packages/Packages')
           Creates a new DPKG::Parse::Packages object.  By default, it tries to open /usr/src/packages/Packages.

Name

       DPKG::Parse::Packages - Parse the Packages file

See Also

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

Synopsis

           use DPKG::Parse::Packages;

           my $packages = DPKG::Parse::Packages->new(
               'filename' => '/usr/src/packages/Packages',
           );
           while (my $entry = $packages->next_package) {
               print $entry->package . " " . $entry->version . "\n";
           }

           my $postfix = $packages->get_package('name' => 'postfix');

See Also