Setting up own yum update mirror

Michael A. Peters mpeters at mac.com
Tue Mar 15 11:42:58 UTC 2005


On 03/15/2005 03:18:51 AM, Sasa Stupar wrote:
> Hi!
> 
> I want to create my own yum update mirror for my office LAN only  
> since I have 50 machines FC3 and to update all from the net is  
> killing my inet link.
> Can anyone give me some pointers where can I start with because  
> googling didn't take me aanywhere?

use the mirror capabilities of lftp to mirror a yum server somewhere  
(or rsync with one) - and point your clients your local copy of the  
updates.

It would be a good idea to also make a copy of the base.

yum isn't anything special - just needs a http, ftp, or nfs server -  
and once a day or so update your mirror with some external mirror  
somewhere. lftp in a crontab is good for that.

Here's what I run from my crontab once a day -

#!/bin/sh
export TERM=Linux
# mirror Fedora C3 updates

MIRROR="ftp://mirrors.usc.edu/pub/linux/fedora/fedora/fedora/3/i386/RPMS.updates/"
cd /var/yum/FC3_UPDATES/RPMS.updates
lftp -e 'mirror -e && exit' ${MIRROR}

My fc3 boxes then get pointed to that local repository.

-- 
Michael A. Peters
http://mpeters.us/






More information about the fedora-list mailing list