J S Jayakumar wrote:
Troy Dawson wrote:
Hello,
I want to thank everyone who has migrated their clusters to their own
mirrors. This has really helped the load on ftp.scientificlinux.org,
and hopefully made updates quicker for you as well.
Thank You Very Much
Troy
Dear Troy,
Persons using SL in our Institute has a problem that they can not
update their SL version using package updater (pup) due to firewall
restrictions. But we can download the necessary files from
ftp.scientificlinux.org and keep it available to the users. Kindly tell
me how to setup the mirror which will be used only for updates of
SL5.x. We want to keep ONLY those files which are needed for updating
SL5.x systems and not the whole set of directories and files. Also
please indicate how to instruct pup to use this repository for updating SL.
With Thanks and Regards,
J S Jayakumar
First step, here is the instructions for mirroring. I would suggest using
rsync.
https://www.scientificlinux.org/download/mirroring/
For updates you really just need two directories. The main RPM directory, and
the updates/security directory. So, for Scientific Linux 5.2 i386 you would
need the following directories
rsync://rsync.scientificlinux.org/scientific/52/i386/SL/
rsync://rsync.scientificlinux.org/scientific/52/i386/updates/security/
And for our example, we'll say that you are mirroring them to
http://mymachine.com/scientific/52/i386/Main/
http://mymachine.com/scientific/52/i386/Updates/
We'll assume that mymachine.com is within your firewall, and that all the
machines can get to it.
Now, on each machine you would need to edit the files /etc/yum.repos.d/sl.repo
and /etc/yum.repos.d/sl-security.repo so they look like the following
# cat /etc/yum.repos.d/sl.repo
[sl-base]
name=SL 5 base
baseurl=http://mymachine.com/scientific/52/$basearch/Main
enabled=1
gpgcheck=0
# cat /etc/yum.repos.d/sl-security.repo
[sl-security]
name=SL 5 security updates
baseurl=http://mymachine.com/scientific/52/$basearch/Updates
enabled=1
gpgcheck=0
Hope this helps.
Troy
--
__________________________________________________
Troy Dawson [EMAIL PROTECTED] (630)840-6468
Fermilab ComputingDivision/LCSI/CSI DSS Group
__________________________________________________