delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/11/07/10:07:38

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:in-reply-to
:references:mime-version:content-type:content-transfer-encoding;
q=dns; s=default; b=MhgSPrsTNwiAvDYmYjonhhMbQhRxDx0Hfb2uLkhpIYX
0A6oq9vlWzqFGNWBnCoUP5GupMMq8Q+Iyxv1LMtPac2dP726WY5HMErR4/Y6nteb
N2OnO+js948p5mT8eJ6n5NtbTm9JN0+OTIBrFNR/qbsglM5dYzLiFSw6XnlEqfwY
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:in-reply-to
:references:mime-version:content-type:content-transfer-encoding;
s=default; bh=jtWMgYA/zPIXdOj6uzHwtf0jhCc=; b=wpEwhgSqprAk3yvVw
xkYFJzfAXyYGCls9Bt8nv0XItLBXWae0v3rJgk40QglHpdRUS/lcl1I9PqAFGMs+
WAMYhDXp3l34P5628gBrB2A7141ZoiOGpVhAMjihdjXqyr3AuJeyQnBR8Lo0wSVY
cgmKh+D3cJcrwxp1aQkL/gmeZc=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_50,DNS_FROM_AHBL_RHSBL,RDNS_NONE,SPAM_SUBJECT,SPF_PASS,URIBL_BLOCKED autolearn=no version=3.3.2
X-HELO: mail3.ks.pochta.ru
Date: Thu, 7 Nov 2013 19:06:43 +0400
From: Mikhail Usenko <mikeus AT nm DOT ru>
To: cygwin AT cygwin DOT com
Subject: Re: Seeking a suggestion for unattended mass install procedure
Message-Id: <20131107190643.085298c98b1386208586489c@nm.ru>
In-Reply-To: <6CF2FC1279D0844C9357664DC5A08BA21B1968@MLBXV06.nih.gov>
References: <6CF2FC1279D0844C9357664DC5A08BA21B1968 AT MLBXV06 DOT nih DOT gov>
Mime-Version: 1.0
X-RSpam-Score: 30
X-RSpam-Report: This message is unlikely spam.

Hello.

One of the simple method to install a fresh clone of the existing Cygwin's
installation is such a way:
Create a new Cygwin root install directory and etc/setup subdirectories in it,
copy therein the /etc/setup/installed.db file from the master installation you
want to clone. Then launch setup.exe pointing to the new root directory and
apply 'Reinstall' action on top of the category tree view in the package chooser.

Unfortunately this cannot be executed with an unattended setup because of the
default action in this mode is 'Default' which means to 'Keep' existing
versions of packages or to automatically update to newer versions if they are
present in the selected package repository for the setup. So you will end up
with nothing or only several packages been installed. And there is no
command-line option for setup.exe to specify a reinstall action.

The workarounds are: 1) to add such an option to the setup.exe program;
or 2) to use a special-prepared installed.db file which a priori contains
package versions lesser than those ones in the package repository you are
installing from.

This is a simple sed command to get that kind of installed.db file:
sed 's/^\([^ ]*\) \1-/\1 \1-0./' /etc/setup/installed.db

So, you can put on the DVD the directory named 'Cygwin' containing
the structure like this:

setup-preset/
  etc/
    setup/
      installed.db
packages/

where packages/ is a local mirror of the Cygwin's package directory created
by setup.exe during a 'Download Without Installing' run.

Deploying on the target machine will comprise two commands:

xcopy "DVD-DRIVE:\Cygwin\setup-preset" "C:\Cygwin\" /v/e/h
setup-x86.exe -q -L -l "DVD-DRIVE:\Cygwin\packages" -a "x86" -R "C:\Cygwin"


-- 


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