DPKG::...ackages(3pm)

πŸ“¦
version 0.03 Β· 2 versions
  • 0.03 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.03 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– DPKG::Parse::Packages πŸ’–

okay bestie, so this is DPKG::Parse::Packages, a Perl module from the User Contributed Perl Documentation section (that's the 3pm part of the manual name, iykyk). And no cap, it does exactly one thing but it does it gorgeously: it parses the Packages file. Slay. πŸ’…


✨ NAME ✨

DPKG::Parse::Packages β€” Parse the Packages file. that's it, that's the whole vibe. 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the main character moment, fr fr:

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

look at that. create it, loop it, grab a package by name. iconic. πŸ‘‘


🌈 DESCRIPTION 🌈

DPKG::Parse::Packages parses a dpkg/apt style Packages file and turns every single entry into a DPKG::Parse::Entry object. one entry, one object, no crumbs left behind. ✨

need the tea on get_package and next_package? that's over in DPKG::Parse. literally go look, it's all there. 🫢

want the whole lore on the entry objects themselves? DPKG::Parse::Entry has you covered, bestie. πŸŽ€


πŸŽ€ METHODS πŸŽ€

  • new('filename' => '/usr/src/packages/Packages') β€” creates a brand new DPKG::Parse::Packages object, fresh out of the box. and by default? it tries to open /usr/src/packages/Packages, so if you don't pass a filename it's just gonna go for that one. defaults, we love her. πŸ’–

πŸ”₯ SEE ALSO πŸ”₯

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

(the whole friend group, honestly. go say hi. 🌸)


πŸ’œ AUTHOR πŸ’œ

Adam Jacob, "holoway@cpan.org" β€” the actual legend who made this happen. shoutout. 🫢


⭐ LICENSE ⭐

This library is free software. You can redistribute it and/or modify it under the same terms as perl itself. free software era, we stan πŸ’…


okay that's the whole page, and here's the cute little sign-off from the footer: this doc is from perl v5.34.0, dated 2022-06-13, and it lives at DPKG::...ackages(3pm). bye bestie, go parse some packages πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from