Mrepo Quick Guide

With mrepo you can build 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.

Mrepo is the successor of YAM.

References

* mrepo-0.8.7-1.el5.rf
* createrepo-0.4.11-3.el5
* Mrepo home page

Installation

With APT:

apt-get update
apt-get install mrepo

With YUM:

yum install mrepo

General settings

File: ''/etc/mrepo.conf''

This file contains the general settings for mrepo.

###
### Configuration file for mrepo
###

[main]
srcdir   = /var/rep
wwwdir   = /var/www/html/rep
confdir  = /etc/mrepo.conf.d
arch     = i386
metadata = apt repomd

Web server settings

File: ''/etc/httpd/conf.d/mrepo.conf''

This file contains web server settings for the published directory.

Repositories settings

Files: ''/etc/mrepo.conf.d/*.conf''

These files contain all repositories configurations. You should split your repositories configuration in more files.

Usage

# mrepo -h
usage: mrepo [options] dist1 [dist2-arch ..]

Set up a distribution server from ISO files

mrepo options:
  -c, --config=file       specify alternative configfile
  -f, --force             force repository generation
  -g, --generate          generate mrepo repositories
  -n, --dry-run           show what would have been done
  -q, --quiet             minimal output
  -r, --repo=repo1,repo2  restrict action to specific repositories
      --remount           remount distribution ISOs
  -u, --update            fetch OS updates
  -v, --verbose           increase verbosity
  -vv, -vvv, -vvvv..      increase verbosity more
      --unmount           unmount distribution ISOs

Generate and update mirrors:

mrepo -guv


This topic: IGIRelease > WebHome > TipsTricks > Mrepo
Topic revision: r2 - 2012-01-04 - CristinaAiftimiei
 
This site is powered by the TWiki collaboration platformCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback