public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Mikhail Usenko <mikeus@nm.ru>
To: cygwin@cygwin.com
Subject: Re: Seeking a suggestion for unattended mass install procedure
Date: Thu, 07 Nov 2013 15:06:00 -0000	[thread overview]
Message-ID: <20131107190643.085298c98b1386208586489c@nm.ru> (raw)
In-Reply-To: <6CF2FC1279D0844C9357664DC5A08BA21B1968@MLBXV06.nih.gov>

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

  reply	other threads:[~2013-11-07 15:06 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-07  5:02 Buchbinder, Barry (NIH/NIAID) [E]
2013-11-07 15:06 ` Mikhail Usenko [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-11-04 16:27 Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2013-11-04 17:09 ` Larry Hall (Cygwin)
2013-11-04 17:22   ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2013-11-04 17:37     ` Larry Hall (Cygwin)
2013-11-04 18:03       ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2013-11-04 18:17         ` Eric Lilja
2013-11-04 18:27           ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2013-11-04 18:32             ` Christopher Faylor
2013-11-04 19:35             ` Achim Gratz
2013-11-04 20:14             ` Buchbinder, Barry (NIH/NIAID) [E]
2013-11-04 20:31               ` Christopher Faylor
2013-11-04 18:38         ` Larry Hall (Cygwin)
2013-11-04 19:05           ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2013-11-04 19:25             ` Larry Hall (Cygwin)
2013-11-04 19:52               ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2013-11-04 19:11           ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2013-11-04 19:28             ` Larry Hall (Cygwin)
2013-11-04 19:33             ` Christopher Faylor
2013-11-04 19:40             ` Achim Gratz
2013-11-04 18:50         ` marco atzeri
2013-11-04 19:28           ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2013-11-04 20:24             ` marco atzeri
2013-11-04 19:29 ` Achim Gratz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131107190643.085298c98b1386208586489c@nm.ru \
    --to=mikeus@nm.ru \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).