On Wed, Jul 28, 2010 at 7:23 AM, Stephen Harris <lists@xxxxxxxxxx> wrote: > On Wed, Jul 28, 2010 at 03:39:46AM -0700, John Doe wrote: >> > From: Boris Epstein <borepstein@xxxxxxxxx> >> > By the way - since it sounds like you have the experience - how easy >> > is it to mirror CentOS repositories locally? How much space do I need, >> > roughly? > >> I mirror it manualy (os from the DVDs and update with a simple rsync), although >> there is a createrepo package for mirroring repos. > > You don't need a createrepo or anything else like; just a simple rsync. > > I also copy the DVD and updates. > > For i386: > % du -hs /RedHat/DVD/CentOS-5.5 > 3.9G /RedHat/DVD/CentOS-5.5 > > % du -hs /RedHat/updates/centos5.5/i386 > 1.7G /RedHat/updates/centos5.5/i386 > > For x86_64: > % du -hs /RedHat/DVD/CentOS-5.5_x86_64 > 4.4G /RedHat/DVD/CentOS-5.5_x86_64 > > % du -hs /RedHat/updates/centos5.5/x86_64 > 1.9G /RedHat/updates/centos5.5/x86_64 > > The rsync script is pretty simple; I run it from cron regularly. > > #!/bin/sh > cd /RedHat/updates/centos5.5 || exit > > rsync --delete -rlptDzHq rsync://mirrors.kernel.org/centos/5.5/updates/i386 . > rsync --delete -rlptDzHq rsync://mirrors.kernel.org/centos/5.5/updates/x86_64 . > > Then I can set up my yum.repos.d similar to this: > > [c5-local] > name=CentOS-$releasever - Media > baseurl=file:///RedHat/DVD/CentOS-5/ > gpgcheck=1 > gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 > protect=1 > priority=1 > enabled=1 > > [update-local] > name=CentOS-$releasever - Updates local > baseurl=file:///RedHat/updates/centos$releasever/$basearch/ > gpgcheck=1 > gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 > protect=1 > priority=1 > enabled=1 > > And, of course, disable the default repositories. > > -- > > rgds > Stephen > _______________________________________________ > CentOS mailing list > CentOS@xxxxxxxxxx > http://lists.centos.org/mailman/listinfo/centos > Thanks, Stephen, looks like an excellent set of instructions. I may well try that. Why should I disable the default repositories, though? Boris. _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos