Ken Godee wrote:
bit off topic, but....
I've set up my first Centos gateway server and now setting up another server on internal network.
I thought it would be nice to use the gateway servers "/var/cache/yum" as a local repository for any internal servers since it would be up to date with the lastest packages and save bandwidth.
<snip>
It's a better idea to rsync the entire repo. You can do it with Dag Wieer's YAM, or just rsync.
Here's how I do it: ----------- /etc/cron.daily/rsynch.sh
#!/bin/bash
rsync -Pvptrl --delete rsync://rsync.gtlib.cc.gatech.edu/cAos/centos-3/3.3/os/i386/ /mirrors/CentOS/os/i386/ rsync -Pvptrl --delete rsync://rsync.gtlib.cc.gatech.edu/cAos/centos-3/3.3/updates/i386/ /mirrors/CentOS/updates/i386/ rsync -Pvptrl --delete rsync://rsync.gtlib.cc.gatech.edu/cAos/centos-3/3.3/addons/i386/ /mirrors/CentOS/addons/i386/ rsync -Pvptrl --delete rsync://rsync.gtlib.cc.gatech.edu/cAos/centos-3/3.3/extras/i386/ /mirrors/CentOS/extras/i386/ rsync -Pvptrl --exclude=SRPMS --delete rsync://apt.sw.be/pub/freshrpms/pub/dag/redhat/el3/en/i386/dag/ /mirrors/dag/ ---------- /etc/httpd/conf.d/mirrors.conf
Alias /mirrors "/mirrors"
<Directory "/mirrors"> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from 192.168 127.0.0.1 </Directory> ---------
and then you point your yum.conf appropriately.
HTH,
Ben