View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
Jan Gehring > Rex-Repositorio-0.1.0 > Rex::Repositorio



Annotate this POD

View/Report Bugs
Module Version: 0.1.0   Source   Latest Release: Rex-Repositorio-1.2.1 - Linux Repository Management ^ is a tool to create and manage linux repositories. You can mirror online repositories so that you don't need to download the package every time you set up a new server. You can also secure your servers behind a firewall and disable outgoing http traffic.

With it is easy to create custom repositories for your own packages. With the integration of a configuration management tool you can create consistant installations of your server.



--mirror mirror a configured repository (needs --repo)
--tag=tagname tag a repository (needs --repo)
--repo=reponame the name of the repository to use
--update-metadata update the metadata of a repository
--update-files download files even if they are already downloaded
--init initialize an empty repository
--add-file=file add a file to a repository (needs --repo)
--remove-file=file remove a file from a repository (needs --repo)
--list list known repositories
--help display this help message


To configure create a configuration file /etc/rex/repositorio.conf. RepositoryRoot = /srv/html/repo/

 # log4perl configuration file
   config = /etc/rex/io/log4perl.conf
 # create a mirror of the nightly rex repository
 # the files will be stored in
 # /srv/html/repo/head/rex-centos-6-x86-64/CentOS/6/rex/x86_64/
 <Repository rex-centos-6-x86-64>
   url   =
   local = rex-centos-6-x86-64/CentOS/6/rex/x86_64/
   type  = Yum
 # create a mirror of centos 6
 # and download the pxe boot files, too.
 <Repository centos-6-x86-64>
   url    =
   local  = centos-6-x86-64/CentOS/6/os/x86_64/
   type   = Yum
   images = true
 # create a custom repository
 <Repository centos-6-x86-64-mixed>
   local = centos-6-x86-64-mixed/mixed/6/x86_64/
   type  = Yum
 <Repository debian-wheezy-i386-main>
   url       =
   local     = debian-wheezy-amd64-main/debian
   type      = Apt
   arch      = i386
   dist      = wheezy
   component = main

An example log4perl.conf file:

 log4perl.rootLogger                    = DEBUG, FileAppndr1

 log4perl.appender.FileAppndr1          = Log::Log4perl::Appender::File
 log4perl.appender.FileAppndr1.filename = /var/log/repositorio.log
 log4perl.appender.FileAppndr1.layout   = Log::Log4perl::Layout::SimpleLayout
syntax highlighting: