NAME

Module::Packaged::Generator - build list of modules packaged by a linux distribution

VERSION

version 1.100240

DESCRIPTION

This module alows to fetch modules available as native Linux (or BSD) distribution packages, and wraps them in a sqlite database. This allows people to do analysis, draw CPANTS metrics from it or whatever.

Of course, running the utility shipped in this dist will only create the database for the current distribution. But that's not our job to do crazy manipulation with this data, we just provide the data :-)

METHODS

my @drivers = Module::Packaged::Generator->all_drivers();

Return a list of all available drivers supporting a distribution. The list is a list of module names (strings) such as Module::Packaged::Generator::Mandriva.

my $driver = Module::Packaged::Generator->find_driver;

Return a driver that can be used on the current machine, or undef if no suitable driver was found.

my $dbh = Module::Packaged::Generator->create_db($file);

Creates a sqlite database with the correct schema. Remove the previous $file if it exists. Return the handler on the opened database.

SEE ALSO

You can find more information on this module at:

AUTHOR

Jerome Quelin

COPYRIGHT AND LICENSE

This software is copyright (c) 2010 by Jerome Quelin.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.