From 391406c85d86dc931f3fdb2483a14d0f1e7e6355 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 9 Nov 2010 00:15:43 +0100 Subject: doc: Massive update --- doc/appendix/configuration/mrepo.txt | 71 ++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 doc/appendix/configuration/mrepo.txt (limited to 'doc/appendix/configuration') diff --git a/doc/appendix/configuration/mrepo.txt b/doc/appendix/configuration/mrepo.txt new file mode 100644 index 000000000..0633af98e --- /dev/null +++ b/doc/appendix/configuration/mrepo.txt @@ -0,0 +1,71 @@ +.. -*- mode: rst -*- + +.. _mrepo: http://dag.wieers.com/home-made/mrepo/ + +.. _appendix-configuration-mrepo: + +mrepo +===== + +This section describes how to setup an `mrepo`_ mirror. + +`mrepo`_ builds a local APT/Yum RPM repository from local ISO files, +downloaded updates, and extra packages from 3rd party repositories. It +takes care of setting up the ISO files, downloading the RPMs, +configuring HTTP access and providing PXE/TFTP resources for remote +network installations. + + +Sample mrepo configuration +-------------------------- + +:: + + ### Configuration file for mrepo + + ### The [main] section allows to override mrepo's default settings + ### The mrepo-example.conf gives an overview of all the possible settings + [main] + srcdir = /var/mrepo/src + wwwdir = /var/www/mrepo + confdir = /etc/mrepo.conf.d + arch = x86_64 + + mailto = + smtp-server = localhost + + hardlink = yes + shareiso = yes + + rsync-timeout = 3600 + + [centos5] + name = CentOS Server $release ($arch) + release = 5 + arch = x86_64 + metadata = yum repomd + + # ISO images + iso = centos-$release-server-$arch-DVD.iso + + #addons = rsync://mirrors.kernel.org/centos/$release/addons/$arch/RPMS + centosplus = rsync://mirrors.kernel.org/centos/$release/centosplus/$arch/RPMS + extras = rsync://mirrors.kernel.org/centos/$release/extras/$arch/RPMS + #fasttrack = rsync://mirrors.kernel.org/centos/$release/fasttrack/$arch/RPMS + os = rsync://mirrors.kernel.org/centos/$release/os/$arch/CentOS + updates = rsync://mirrors.kernel.org/centos/$release/updates/$arch/RPMS + dag = http://apt.sw.be/redhat/el$release/en/$arch/RPMS.dag + dries = http://apt.sw.be/redhat/el$release/en/$arch/RPMS.dries + rpmforge = http://apt.sw.be/redhat/el$release/en/$arch/RPMS.rpmforge + + ### Any other section is considered a definition for a distribution + ### You can put distribution sections in /etc/mrepo.conf.d/ + ### Examples can be found in the documentation at: + ### /usr/share/doc/mrepo-0.8.6/dists/. + +Update the repositories +----------------------- + +To update your local repository, just lauch the following command :: + + mrepo -ug -- cgit v1.2.3-1-g7c22