SCIENTIFIC-LINUX-USERS Archives

June 2006

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Daniel Widyono <[log in to unmask]>
Reply To:
Daniel Widyono <[log in to unmask]>
Date:
Mon, 19 Jun 2006 13:28:01 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (48 lines)
On Mon, May 22, 2006 at 10:52:08AM -0400, Dan Halbert wrote:
> We'd like to use a local repository for yum, so we don't download things 
> from the SL mirrors multiple times. There's a recipe Troy wrote for 
> doing this for SL3.0x at 
> https://www.scientificlinux.org/documentation/howto/yum-change, but not 
> for 4.x.
> 
> Could anyone supply such a recipe? I can guess at what to do, but with 
> the new availability of the /etc/yum.repos.d/ directory and other 
> changes in 4.x, I'm not sure what the best way to do it is.


[main]
[sl-errata]
name=SL 4 base
baseurl=ftp://local-hostname/linux/scientific/42/$basearch/errata/SL/RPMS/
enabled=1

This is sl-errata.repo.  Do similar for sl.repo.

I use vsftpd to share it to local servers (and it uses itself); some minor
modifications were necessary to vsftpd.conf.  I use lftp to mirror from SL to
local host's ftp serving area, via daily cron job.

Is that what you were looking for?

Dan W.


My vsftpd.conf changes:

#local_enable=YES
#write_enable=YES
# dirmessage_enable=YES
# xferlog_enable=YES
nopriv_user=ftp

Sample lftp script, season to taste (especially excludes):

# lftp -f update.lftp-script
# /etc/cron.d/lftp:
# 39 3 * * *       root    /var/ftp/update.lftp-cron-local
set ftp:list-options -a
open ftp.scientificlinux.org:/linux/scientific/42/i386
lcd /var/ftp/linux/scientific/42/i386
mirror --delete --exclude sites --exclude apt --exclude errata/debuginfo --exclude images/example --exclude errata/obsolete --verbose=1
close

ATOM RSS1 RSS2