Linux::Distribution::Packages(3pm)

Linux::Distribution::Packages3pm

List all packages on various linux distributions

Usage

  use Linux::Distribution::Packages qw(distribution_packages distribution_write);
  $linux = new Linux::Distribution::Packages({'format' => 'csv', 'output_file' => 'packages.csv'});
  $linux->distribution_write();
  # Or you can (re)set the options when you write.
  $linux->distribution_write({'format' => 'xml', 'output_file' => 'packages.xml'});
  # If you want to reload the package data
  $linux->distribution_packages();

Overview

This is a simple module that uses Linux::Distribution to guess the linux distribution and then uses the correct commands to list all the packages on the system and then output them in one of three formats: native, csv, and xml.

Distributions currently working: debian, ubuntu, fedora, redhat, suse, gentoo, slackware, redflag.

The module inherits from Linux::Distribution, so can also use its calls.

Export

None by default.

Todo

* Add the capability to correctly get packages for all recognized distributions. * Separate out parsing from writing. Parse data to hash and give access to hash. Then write the formatted data from the hash.

Releases

7 releases since Debian 7 (Wheezy); the text changed 3 times.

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

Authors

Judith Lebzelter, <[email protected]> Alberto Re, <[email protected]>

From liblinux-distribution-packages-perl 0.05-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.