X-Spam-Check-By: sourceware.org Date: Sat, 11 Mar 2006 16:48:45 -0500 (EST) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com Subject: Re: local cygwin mirror In-Reply-To: <441340D8.997B0D70@dessent.net> Message-ID: References: <441340D8 DOT 997B0D70 AT dessent DOT net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Note-from-DJ: This may be spam On Sat, 11 Mar 2006, Brian Dessent wrote: > Stuart McGraw wrote: > > > - setup.exe's idea of what to download seems to depend on > > what is installed on the download machine. Is there some > > way to tell setup.exe to only download new/updated packages > > that are not already in the download directory, and not > > pay any attention to what is installed? I find it a very > > confusing program to use. > > You could try temporarily renaming out of the way > /etc/setup/installed.db so that setup thinks there are no packages > installed. It will then try to download all selected packages that are > not already in the local download dir. It should be obvious that you'd > do this with the "download only" option and not actually try to install > anything in this state. I wonder if it would make sense to add a "Pure Download" checkbox that is only enabled when "Download Only" is selected, with the net effect of ignoring installed.db? Just an idea for the archives... > [snip] > > - Has anyone written a script to do this? > > I don't use a script, I just use rsync. I have the following in my > crontab to run twice a day automatically: > > 00 10,22 * * * rsync -rlt --exclude=mail-archives/ --exclude=stage/ > --exclude=tmp/ rsync://ftp.inf.tu-dresden.de/cygwin/ /d/packages/cygwin/ > >/dev/null > > Of course, this will keep a full copy in sync with the mirrors, > containing the [prev] versions and source packages. You can play around > with --exclude so that it doesn't download source packages, perhaps > something like --exclude="*-src.tar.*". For [prev] versions there is no > simple way, but since rsync only downloads the things that have changed, > you only download them once anyway. The disk space cost still exists > though. > > If you can't live with the [prev] versions taking up space then you > could probably write something in perl that would take the setup.ini and > a mirror base URL and spit out a list of file URLs. You can then feed > that to rsync or a program that can do ftp mirroring like lftp. ...or use Michael Chase's clean_setup.pl, which does that and more. Someone recently posted a pointer to it. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte." "But no -- you are no fool; you call yourself a fool, there's proof enough in that!" -- Rostand, "Cyrano de Bergerac" -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/