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. So... I created a sym link to create a repository through gateways http server, ie. ln -s /var/cache/yum /var/www/html/yum Now internally I can browse the gateways repository with no problem http://192.168.1.1/yum/addons I've set the internal servers yum.conf to, ie. [addons] name=Local - Addons baseurl=http://192.168.1.1/yum/addons/ gpgcheck=0 result.... yum list addons Gathering header info Server: Local - Addons CacheDir: /var/cache/yum/addons Getting header info from server failover: baseURL = http://192.168.1.1/yum/addons/ failover: path = headers/header.info and the just gets stuck there. structure of gateways repostitory... addons/headers/ addons/packages/ addons/header.info ok,so seems yums looking for in the headers dir for the header.info when really in the addons dir. Tried creating s symlink in the headers dir ( ln -s ../header.info header.info) but no go. Any tips, I'm sure I'm missing something simple? or maybe just can't do it how I want to.
On Thu, 23 Dec 2004, 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.It will only contain those updates for packages that are installed on the system. And usually a gateway system only has a minimum set of packages. If you look for an integrated solution, you could look at Yam: http://dag.wieers.com/home-made/yam/ Kind regards, -- dag wieers, dag at wieers.com, http://dag.wieers.com/ -- [all I want is a warm bed and a kind word and unlimited power]
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