ReleaseEngineering/PuppetAgain/Packages: Difference between revisions

Line 70: Line 70:
* Base and Updates (6.3 and higher)
* Base and Updates (6.3 and higher)
  CENTOS_MAJOR=6
  CENTOS_MAJOR=6
  CENTOS_FULL=6.3
  CENTOS_FULL=6.5
  DATE=2012-07-12
  DATE=2013-12-03
  rsync -v -n -aP \
  rsync -v -n -aP \
     --filter='-r updates/Source' --filter='-r os/Source' --filter='-r centos-version.txt'\
     --filter='-r updates/Source' --filter='-r os/Source' --filter='-r centos-version.txt'\
Line 77: Line 77:
     --delete --delete-excluded \
     --delete --delete-excluded \
     rsync://linux.mirrors.es.net/centos/$CENTOS_FULL/ /data/repos/yum/mirrors/centos/$CENTOS_MAJOR/$DATE/
     rsync://linux.mirrors.es.net/centos/$CENTOS_FULL/ /data/repos/yum/mirrors/centos/$CENTOS_MAJOR/$DATE/
rsync -v -n -aP \
    rsync://archive.kernel.org/centos/$CENTOS_FULL/os/Source/SPackages/ /data/repos/yum/mirrors/centos/$CENTOS_MAJOR/$DATE/os/source/
rsync -v -n -aP \
    rsync://archive.kernel.org/centos/$CENTOS_FULL/updates/Source/SPackages/ /data/repos/yum/mirrors/centos/$CENTOS_MAJOR/$DATE/updates/source/
  echo $CENTOS_FULL > /data/repos/yum/mirrors/centos/$CENTOS_MAJOR/$DATE/centos-version.txt
  echo $CENTOS_FULL > /data/repos/yum/mirrors/centos/$CENTOS_MAJOR/$DATE/centos-version.txt
  time hardlink -v /data/repos/yum/mirrors/centos
  time hardlink -v /data/repos/yum/mirrors/centos
* sync the source at "nearly" the same time, so that we have a good chance of having the srpm for a particular RPM.  Note that CentOS does not make srpms available anywhere via rsync, so you'll have to use wget:
  mkdir /data/repos/yum/mirrors/centos/6/$DATE/os/source
  cd /tmp
  wget -r --no-parent --reject index.html http://vault.centos.org/$CENTOS_FULL/os/Source/SPackages/
  rsync -r /tmp/vault.centos.org/$CENTOS_FULL/os/Source/SPackages/ /data/repos/yum/mirrors/centos/6/$DATE/os/source/
  wget -r --no-parent --reject index.html http://vault.centos.org/$CENTOS_FULL/updates/Source/SPackages/
  rsync -r /tmp/vault.centos.org/$CENTOS_FULL/updates/Source/SPackages/ /data/repos/yum/mirrors/centos/6/$DATE/updates/source/


* when re-mirroring, it may save a bit of time and space to use rsync's hard-link capabilities to copy the last date to the new date.  This can be done with the --link-dest option:
* when re-mirroring, it may save a bit of time and space to use rsync's hard-link capabilities to copy the last date to the new date.  This can be done with the --link-dest option:
canmove, Confirmed users
1,394

edits