[tools] Redhat Client Config with MREPO

John Scherff JScherff at 24hourfit.com
Mon Mar 19 22:02:03 CET 2007


Thanks for the clarification.  Actually, I don't comment out "up2date
default" on the mrepo server at all.  I only comment this out on the RHN
clients that pull updates from mrepo.

 

________________________________

From: Jan-Frode Myklebust [mailto:janfrode at tanso.net] 
Sent: Monday, March 19, 2007 1:54 PM
To: John Scherff
Cc: Dag Wieers; Camron W. Fox; tools at lists.rpmforge.net
Subject: Re: [tools] Redhat Client Config with MREPO

 

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/61d9bbe6/attachment.html


More information about the tools mailing list