Test::AutoBuild::Stage::CreateRepo - Create an package repository index for package management tools
use Test::AutoBuild::Stage::CreateRepo my $stage = Test::AutoBuild::Stage::CreateRepo->new(name => "crearerepo", label => "Create package repository index", options => { directory => "/var/lib/builder/public_html/dist", parameters => "-d -s -n", }); $stage->run($runtime);
This module invokes the createrepo(8) command to generate an index of RPM packages generated during the build. The index enables use of the yum(8) command to install packages generated by the builder. The crearerepo(8) command is expected to be found in the $PATH.
createrepo(8)
yum(8)
crearerepo(8)
$PATH
In addition to the standard parameters defined by the Test::AutoBuild::Stage module, this module accepts two entries in the options parameter:
options
The full path to the directory containing RPMs to be indexed. If this option is not specified, then the directories option must be set.
directories
An array of paths to directories containing RPMs to be indexed. If this option is not specified, then the directory option must be set.
directory
A string of command line arguments to be passed to the createrepo command, see the createrepo(8) manual page for details of possible values.
createrepo
{ name = createrepo label = Update Pacakge Repository module = Test::AutoBuild::Stage::CreateRepo critical = 0 options = { directory = /var/lib/builder/public_html/dist parameters = -d } }
For each directory defined in the options parameter, this method will run the createrepo command to generate the index.
Daniel Berrange <dan@berrange.com> Dennis Gregorovic <dgregorovic@alum.mit.edu>
Copyright (C) 2004 Red Hat, Inc.
perl(1), Test::AutoBuild::Stage, yum(8), createrepo(8)
perl(1)
To install Test::AutoBuild, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::AutoBuild
CPAN shell
perl -MCPAN -e shell install Test::AutoBuild
For more information on module installation, please visit the detailed CPAN module installation guide.