Find the answer to your Linux question:
Results 1 to 5 of 5
Hi there, Has anyone done the mrepo client configuration on CentOS 5 and RHEL 5. If you have a proper documentation for this please inform me where I can get ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2008
    Posts
    3

    Question RHEL5 and Centos 5 Mrepo Client configuration


    Hi there,

    Has anyone done the mrepo client configuration on CentOS 5 and RHEL 5.
    If you have a proper documentation for this please inform me where I can get it.

    I have done the following but my rhel5 client is not updating:

    Client Setup

    Internal-mirror.repo

    [root@silverfir yum.repos.d]# vi internal-mirror.repo
    #[base]
    #name=Red Hat Enterprise Linux $releasever - $basearch - base
    #baseurl=http://10.198.1.28/var/mrepo/rhel5es-i386-$basearch/RPMS.os
    #enabled=1
    #gpgcheck=1
    #gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

    [updates]
    name=Red Hat Enterprise Linux $releasever - $basearch - updates
    baseurl=http://10.198.1.28/var/mrepo/rhel5es-i386-$basearch/RPMS.updates
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

    YUM UPDATE

    [root@guru yum]# /etc/init.d/yum-updatesd start
    Starting yum-updatesd: [ OK ]
    [root@guru yum]# /etc/init.d/yum-updatesd status
    yum-updatesd (pid 20558 20493 3653) is running...
    [root@guru yum]# yum update
    Loading "installonlyn" plugin
    Setting up Update Process
    Setting up repositories
    http://10.198.1.28/var/mrepo/rhel5es...ta/repomd.xml: [Errno 14] HTTP Error 404: Not Found
    Trying other mirror.
    Error: Cannot open/read repomd.xml file for repository: updates
    [root@guru yum]#

    Mrepo server setup

    [root@geeko rhel5es-i386]# pwd
    /var/mrepo/rhel5es-i386
    [root@geeko rhel5es-i386]# ls
    extras mrepo.log rhel-5-server-i386-disc1.iso rhel-5-server-i386-disc2.iso rhel-5-server-i386-disc3.iso rhel-5-server-i386-disc4.iso rhel-5-server-i386-disc5.iso systemid updates
    [root@geeko rhel5es-i386]# cat /etc/mrepo.conf.d/
    centos4-i386.conf centos5-i386.conf fedora8-i386.conf livna-i386.conf rhel4es-i386.conf rhel5es-i386.conf .rhel5es-i386.conf.swp
    [root@geeko rhel5es-i386]# cat /etc/mrepo.conf.d/rhel5es-i386.conf
    [rhel5es-i386]
    name = Red Hat Enterprise Linux ES $release Update 5 ($arch)
    release = 5
    rhnrelease = 5Server
    arch = i386
    metadata = yum repomd repoview

    ### ISO images
    iso = rhel-$release-server-$arch-disc?.iso

    ### Additional repositories
    updates = rhn:///rhel-$arch-server-$release
    #extras = rhn:///rhel-$arch-server-$release-extras
    [root@geeko rhel5es-i386]# cat /etc/mrepo.conf
    ### 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
    wwwdir = /var/www/mrepo
    confdir = /etc/mrepo.conf.d
    #arch = i386
    mailto =
    smtp-server = localhost
    rhnlogin =
    hardlink = yes
    shareiso = yes
    hardlinkpluscmd = /usr/bin/hardlink++ 2>/dev/null
    createrepocmd=/usr/bin/createrepo
    mirrordir-exclude-debug = yes
    mirrordir-exclude-srpm = yes

    logfile = /var/log/mrepo.log
    createrepo-options = -p
    ### 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.4/dists/.
    [root@oak rhel5es-i386]#

  2. #2
    Just Joined!
    Join Date
    Jan 2008
    Posts
    3

    Angry RHEL5 and Centos 5 Mrepo Client configuration

    Does anyone ever setup Mrepo?

  3. #3
    Linux Enthusiast
    Join Date
    Oct 2004
    Posts
    609
    Please be a bit more specific as to what the problem is.

    Are you trying to update a RHEL5 client without a RHN support contract?
    If so, it won't work.

    You have a contract and the updates are not available from the internet?
    This might be caused by the fact that there is a 10.x.x.x IP address specified with the RHEL5 update section. IP 10.x.x.x is a so-called reserved IP range, not used on the internet, but only for local settings.

    More details on mrepo: link

  4. #4
    Just Joined!
    Join Date
    Jan 2008
    Posts
    3
    Hi Redman,

    I have setup a central repository server using mrepo that downloads the updates from RHN. This server is configured using Mrepo DAG: mrepo: Yum/Apt repository mirroring (fka yam) and its working fine. What I currently doing now is trying to configure yum on my Centos 5 and RHES 5 to get the updates from my central Mrepo repostory instead of the internet.

    This is my Mrepo server example:
    mrepo RPM Mirror on oak
    The subdirectories below are created and managed by mrepo. They contain RPM repositories for use with Smart, up2date, Apt and Yum, directories to allow for remote network installs, as well as ISO files for people to download and burn to disc.
    Name Last modified Size Description-------------------------------------------------------------------------------- centos4-i386/ 20-Nov-2007 10:55 - CentOS 4 for x86
    centos5-i386/ 12-Dec-2007 13:20 - CentOS 5 for x86
    livna-8-i386/ 02-Dec-2007 00:09 -
    rhel4es-i386/ 20-Nov-2007 10:58 - Red Hat Enterprise Server 4 for x86
    rhel5es-i386/ 26-Nov-2007 10:34 - Red Hat Enterprise Server 5 for x86
    --------------------------------------------------------------------------------
    Powered by mrepo. Written by Dag Wieers.

    This is my RHEL 5 client yum setup :

    /etc/yum.repo.d/
    #PUT YOUR REPOS HERE file name file.repo
    # in /etc/yum.repos.d
    #[base]
    #name=Red Hat Linux $releasever - $basearch - Base
    #baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/$releasever/$basearch/
    [updates]
    name=Red Hat Linux $releasever - Updates
    baseurl=http://oak/rhel5es-i386/RPMS.updates/

    error I'm getting when updating RHEL 5 client is:

    [root@silverfir yum.repos.d]# yum update
    Loading "installonlyn" plugin
    Setting up Update Process
    Setting up repositories
    http://oak/rhel5es-i386/RPMS.updates...ta/repomd.xml: [Errno 14] HTTP Error 503: Service Unavailable
    Trying other mirror.
    Error: Cannot open/read repomd.xml file for repository: updates
    [root@silverfir yum.repos.d]#

    This is my Centos 5 client yum setup :

    [root@dragon ~]# cat /etc/yum.conf
    [main]
    cachedir=/var/cache/yum
    keepcache=1
    debuglevel=2
    logfile=/var/log/yum.log
    pkgpolicy=newest
    distroverpkg=redhat-release
    tolerant=1
    exactarch=1
    obsoletes=1
    gpgcheck=1
    plugins=1
    metadata_expire=1800

    # PUT YOUR REPOS HERE OR IN separate files named file.repo
    # in /etc/yum.repos.d
    #[base]
    #name=Red Hat Linux $releasever - $basearch - Base
    #baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/$releasever/$basearch/
    [updates]
    name=Red Hat Linux $releasever - Updates
    baseurl=http://oak/centos5-i386/RPMS.update/
    [root@dragon ~]#

    error I'm getting when updating Centos 5 client is:

    [root@dragon ~]# yum update
    Loading "installonlyn" plugin
    Setting up Update Process
    Setting up repositories
    http://oak/centos5-i386/RPMS.update/...ta/repomd.xml: [Errno 14] HTTP Error 503: Service Unavailable
    Trying other mirror.
    Error: Cannot open/read repomd.xml file for repository: updates
    [root@dragon ~]#

    Thanks Redman hope this guides you better.

  5. #5
    Just Joined!
    Join Date
    Jun 2009
    Posts
    1

    Post

    i have written a HowTo to set up mrepo in Centos5 for mirroring centos and using it for REDHAT also.

    http kmkswamy(dot)blogspot(dot)com/2009/06/howto-privatelocal-mirror-with-mrepo(dot)html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •