X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-5.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org X-IronPortListener: Outbound_SMTP X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArwAANJ3ak6cKEdK/2dsb2JhbABCmHuPGHiBUgEBAQEDEihPAgEIDQscAhAfEyUBAQQbGqNum02GDmAEi3mMc4wC From: "Buchbinder, Barry (NIH/NIAID) [E]" To: "cygwin AT cygwin DOT com" Date: Fri, 9 Sep 2011 16:34:53 -0400 Subject: RE: automated cygwin install Message-ID: <0105D5C1E0353146B1B222348B0411A20A23D32243@NIHMLBX02.nih.gov> 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> In-Reply-To: <20110909203152.GB6385@ednor.casa.cgf.cx> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id p89KZE1x020109 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. Best wishes, - Barry Disclaimer: Statements made herein are not made on behalf of NIAID. -- 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