delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/09/09/09:53:09

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Andrew Schulman <schulman DOT andrew AT epamail DOT epa DOT gov>
Subject: automated cygwin install
Date: Fri, 09 Sep 2011 09:52:23 -0400
Lines: 33
Message-ID: <6p4k675lc62jj9ngemb18v2h94mpnjcpsu@4ax.com>
Mime-Version: 1.0
X-Archive: encrypt
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

I just had to reinstall Cygwin on a reimaged computer, and decided to finally tackle the automated
installation.  I didn't find any recent posts on the topic, so here's my solution.

In a new installation, we have to write an (ugh) MSDOS CMD script, since bash isn't available.  One
way around that would be to install just the base, then run a bash script, but I decided to bite the
bullet and write a CMD script that would do it all in one go.

Here's what mine looks like:

setup.exe ^
--no-shortcuts ^
--quiet-mode ^
--disable-buggy-antivirus ^
--packages ^
aria2,^
atool,^
autoconf,^
automake,^
autossh,^

and so on.  Two things to notice:

* The caret (^) character at the end of every line is CMD's line continuation character.  (Maybe you
already knew that, but not being very experienced with CMD, I had to look around to find it out.)

* The list of package names is comma-delimited.  This doesn't seem to be documented anywhere in the
setup help, but the --packages option expects a comma-delimited list of package names.  If you
space-delimit them, only the first one will be installed and the rest will be ignored.

Nirvana.  A one-click new Cygwin installation, with all of my favorite packages.  I hope it's useful
to others.

Andrew.


--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019