X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,UNPARSEABLE_RELAY X-Spam-Check-By: sourceware.org X-Yahoo-SMTP: jenXL62swBAWhMTL3wnej93oaS0ClBQOAKs8jbEbx_o- Date: Fri, 9 Sep 2011 21:27:20 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: automated cygwin install Message-ID: <20110910012720.GC6385@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <6p4k675lc62jj9ngemb18v2h94mpnjcpsu AT 4ax DOT com> <4E6A6863 DOT 2030600 AT etr-usa DOT com> <20110909203152 DOT GB6385 AT ednor DOT casa DOT cgf DOT cx> <0105D5C1E0353146B1B222348B0411A20A23D32243 AT NIHMLBX02 DOT nih DOT gov> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0105D5C1E0353146B1B222348B0411A20A23D32243@NIHMLBX02.nih.gov> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: 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 On Fri, Sep 09, 2011 at 04:34:53PM -0400, Buchbinder, Barry (NIH/NIAID) [E] wrote: >Christopher Faylor sent the following at Friday, September 09, 2011 4:32 PM >>On Fri, Sep 09, 2011 at 01:26:27PM -0600, Warren Young wrote: >>>On 9/9/2011 7:52 AM, Andrew Schulman wrote: >>>> Here's what mine looks like: >>>> >>>> setup.exe ^ >>>> --no-shortcuts ^ >>>> --quiet-mode ^ >>>> --disable-buggy-antivirus ^ >>>> --packages ^ >>>> aria2,^ >>>> atool,^ >>>> autoconf,^ >>>> automake,^ >>>> autossh,^ >>> >>>Step 2: A script that can write out such a script to clone an existing >>>installation. Just translate the contents of /etc/setup/installed.db >>>to the form --packages wants. >> >>>Step 3: Modify the script to find the last-used setup.ini (registry?), >>>put the packages there into a dependency graph, then compute the >>>minimum set of packages needed to clone the installation. >> >>I was thinking about that too. Don't you get into potential trouble >>when dealing with packages whose name also reflects their version like >>libncurses? >>>No, I am not volunteering. :) >> >>I might volunteer. This has come up often enough that it seems like it >>would be a useful thing to have. > >The following will make the package list. > >$ sed -e '1d' -e 's/ .*$//' -e 's/$/,^/' /etc/setup/installed.db > >I do not think that you need Step 3. I believe that setup will not >download or installed twice duplicates generated by package >dependencies. I know (obviously?) how to make a package list. That is the easy part. cgf -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple