We use a local mirror generated with the following.
[root@t2lcfg ~]# crontab -l
0 2 * * * /usr/bin/lftp -f /etc/mirrors.conf
0 4 * * * /root/makeGliteRepo.sh
[root@t2lcfg ~]# cat /etc/mirrors.conf
open
http://glitesoft.cern.ch/EGEE/gLite/APT/R3.0/rhel30/RPMS.Release3.0/
lcd /localdisk/yum/glite/3.0.0/sl3
mirror --delete --exclude SRPMS --verbose=1
open http://glitesoft.cern.ch/EGEE/gLite/APT/R3.0/rhel30/RPMS.updates/
lcd /localdisk/yum/glite/3.0.0/updates/sl3
mirror --delete --exclude SRPMS --verbose=1
open http://glitesoft.cern.ch/EGEE/gLite/APT/R3.0/rhel30/RPMS.externals/
lcd /localdisk/yum/glite/3.0.0/externals/sl3
mirror --delete --exclude SRPMS --verbose=1
#open
http://grid-deployment.web.cern.ch/grid-deployment/gis/apt/LCG_CA/en/i38
6/RPMS.lcg/
#open
http://grid-deployment.web.cern.ch/grid-deployment/download/RpmDir/secur
ity/index.html
open http://linuxsoft.cern.ch/LCG-CAs/current/RPMS.production/
lcd /localdisk/yum/lcg/ca
mirror --delete --exclude SRPMS --verbose=1
set ftp:list-options -a
open ftp://rm.mirror.garr.it/pub/1/scientific/304/i386/
lcd /localdisk/yum/SL/3.0.4/i386
mirror --delete --verbose=1 --exclude "errata/debuginfo" --exclude
"errata/obsolete" --exclude "sites"
open ftp://rm.mirror.garr.it/pub/1/scientific/305/i386/
lcd /localdisk/yum/SL/3.0.5/i386
mirror --delete --verbose=1 --exclude "errata/debuginfo" --exclude
"errata/obsolete" --exclude "sites"
open ftp://rm.mirror.garr.it/pub/1/scientific/307/i386/
lcd /localdisk/yum/SL/3.0.7/i386
mirror --delete --verbose=1 --exclude "errata/debuginfo" --exclude
"errata/obsolete" --exclude "sites"
open ftp://rm.mirror.garr.it/pub/1/scientific/40/i386/
lcd /localdisk/yum/SL/4.0/i386
mirror --delete --verbose=1 --exclude "errata/debuginfo" --exclude
"errata/obsolete" --exclude "sites"
open ftp://rm.mirror.garr.it/pub/1/scientific/42/i386/
lcd /localdisk/yum/SL/4.2/i386
mirror --delete --verbose=1 --exclude "errata/debuginfo" --exclude
"errata/obsolete" --exclude "sites"
open ftp://rm.mirror.garr.it/pub/1/scientific/43/i386/
lcd /localdisk/yum/SL/4.3/i386
mirror --delete --verbose=1 --exclude "errata/debuginfo" --exclude
"errata/obsolete" --exclude "sites"
quit
The second line of the crontab creates the required headers.
[root@t2lcfg ~]# cat /root/makeGliteRepo.sh
#!/bin/sh
dir=/localdisk/yum/glite/3.0.0
yum-arch $dir/sl3
yum-arch $dir/externals/sl3
yum-arch $dir/updates/sl3
yum-arch /localdisk/yum/lcg/ca
and finally a yum.conf
[root@t2ce02 root]# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
tolerant=1
exactarch=1
[sl303server]
name=SL 3 main
baseurl=http://t2lcfg.physics.ox.ac.uk/yum/SL/3.0.5/$basearch/SL/RPMS/
[sl303errata]
name=SL 3 errata
baseurl=http://t2lcfg.physics.ox.ac.uk/yum/SL/3.0.5/$basearch/errata/SL/
RPMS/
[oxfordlcgserver]
name=Oxford LCG Extras
baseurl=http://t2lcfg.physics.ox.ac.uk/yum/oxford-lcg-extras/
[sl-glite]
name=gLite packages
baseurl=http://t2lcfg.physics.ox.ac.uk/yum/glite/3.0.0/sl3/
[sl-glite-updates]
name=gLite updated packages
baseurl=http://t2lcfg.physics.ox.ac.uk/yum/glite/3.0.0/updates/sl3/
[sl-glite-externals]
name=gLite updated packages
baseurl=http://t2lcfg.physics.ox.ac.uk/yum/glite/3.0.0/externals/sl3/
[sl-lcg-ca]
name=LCG CA packages
baseurl=http://t2lcfg.physics.ox.ac.uk/yum/lcg/ca/
Cheers Pete
----------------------------------------------------------------------
Peter Gronbech Unix Systems Manager and Tel No. : 01865 273389
SouthGrid Technical Co-ordinator Fax No. : 01865 273418
Department of Particle Physics,
University of Oxford,
Keble Road, Oxford OX1 3RH, UK E-mail : [log in to unmask]
----------------------------------------------------------------------
-----Original Message-----
From: Testbed Support for GridPP member institutes
[mailto:[log in to unmask]] On Behalf Of Duncan Rand
Sent: 11 October 2006 17:14
To: [log in to unmask]
Subject: yum.conf
Could someone please send me a working yum.conf file for SL305 and the
glite software. As far as I can see yaim seems to produce a file that
doesn't work:
[LCG.externals]
gpgcheck = 0
name = LCG externals
baseurl =
http://glitesoft.cern.ch/EGEE/gLite/APT/R3.0//rhel30/RPMS.externals
[LCG.Release3.0]
gpgcheck = 0
name = LCG Release3.0
baseurl =
http://glitesoft.cern.ch/EGEE/gLite/APT/R3.0//rhel30/RPMS.Release3.0
produces
Error getting file
http://glitesoft.cern.ch/EGEE/gLite/APT/R3.0//rhel30/RPMS.Release3.0/hea
ders/header.info
[Errno 4] IOError: HTTP Error 404: Not Found
thanks
Duncan
--
Duncan Rand, School of Engineering and Design, Brunel University,
Uxbridge, UK
Email: [log in to unmask] Tel. +44 1895 266804
|