[tools] Redhat Client Config with MREPO
Jan-Frode Myklebust
janfrode at tanso.net
Mon Mar 19 21:54:22 CET 2007
On 3/19/07, John Scherff <JScherff at 24hourfit.com> wrote:
>
> Here's a start for the client-configuration.txt document:
>
> 1.2. Add the following lines to /etc/sysconfig/rhn/sources (one line for
> each channel) to instruct up2date to use the internal repository server
# up2date default <- removed for mrepo
> # other comments ...
> yum base http://mrepo.abc.com/mrepo/rhel4es-$ARCH/RPMS.os/
> yum updates http://mrepo.abc.com/mrepo/rhel4es-$ARCH/RPMS.updates/
> yum extras http://mrepo.abc.com/mrepo/rhel4es-$ARCH/RPMS.extras/
Please note that for a RHEL4 server that's also pulling packages from RHN,
you'll need to temporarily put back the "up2date default" line while mrepo
is downloading the packages. My daily /etc/cron.daily/mrepo does:
$ cat /etc/cron.daily/mrepo
#! /bin/sh -
#
mv /etc/sysconfig/rhn/sources /etc/sysconfig/rhn/sources.$$
echo up2date default > /etc/sysconfig/rhn/sources
/usr/bin/mrepo -q -ug
mv /etc/sysconfig/rhn/sources.$$ /etc/sysconfig/rhn/sources
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rpmforge.net/pipermail/tools/attachments/20070319/d8c90bd5/attachment.html
More information about the tools
mailing list