X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 334A7385C6EB
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1700753133;
	bh=BjUzc+I84B2W6KBFWld/MR9JV6+s+MvpQIZ70ErOnKM=;
	h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
	 From;
	b=OtBon68s6oNPg2t7Gnfv1UFlFMgYiTbURcyGWoeNZ6Y0mFUxrKbqBUhX5vjoOABJu
	 Mn5EB/ocr/DUEf9lxbP5AoTc/uXv1gw/PonM6poKq4PLC0M/eukkiDSVEq4Y2xS8xG
	 cRG6VNyvsjpumBnJ2an4W3FM4NUCluJDdteN7dn4=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7E1383857C70
Date: Thu, 23 Nov 2023 16:24:55 +0100
To: cygwin@cygwin.com
Subject: Re: Capturing a Cygwin instance from another PC
Message-ID: <ZV9ux85kiXSVpD6s@calimero.vinschen.de>
Mail-Followup-To: cygwin@cygwin.com
References: <DB9P251MB00639D5E85344DBC6BB9E9A2DEBAA@DB9P251MB0063.EURP251.PROD.OUTLOOK.COM>
 <CANV9t=QVXeT+rBuSuZu4ogic36L4SRUqqAerCyAYzvKKqm+iUQ@mail.gmail.com>
 <147f983f-eab8-4605-11e6-14709c56d87b@cs.umass.edu>
 <CALXu0Ufia+bHAHxB9xnSnDFdQtyYq_hB8G-XF92Sh+-M-dfAxw@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <CALXu0Ufia+bHAHxB9xnSnDFdQtyYq_hB8G-XF92Sh+-M-dfAxw@mail.gmail.com>
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Corinna Vinschen via Cygwin <cygwin@cygwin.com>
Reply-To: cygwin@cygwin.com
Cc: Corinna Vinschen <corinna-cygwin@cygwin.com>
Content-Type: text/plain; charset="utf-8"
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 3ANFPX5D016399

On Nov 22 23:44, Cedric Blancher via Cygwin wrote:
> On Wed, 22 Nov 2023 at 17:15, Eliot Moss via Cygwin <cygwin@cygwin.com> wrote:
> >
> > On 11/22/2023 10:43 AM, Bill Stewart via Cygwin wrote:
> > > On Wed, Nov 22, 2023 at 7:53 AM Jose Isaias Cabrera wrote:
> > >
> > > I have a new Win11 PC, and I wanted to capture the same Cygwin setup that I
> > >> have in another Win10 PC. I copied the C:\cygwin64 folder from the Win10 pc
> > >> to the Win11 pc, then I downloaded a fresh setup-x86_64.exe from
> > >> cygwin.com to the win11 PC. I ran it and chose "Install from Local
> > >> Directory" and only one shortcut for "Cygwin64 Terminal" was created on the
> > >> desktop. No Cygwin nor Cygwin-X folders were created on the Start menu. The
> > >> original cygwin from the Win10 PC had X installed also.
> > >>
> > >
> > > I don't think "Install from Local Directory" means "reproduce same cygwin
> > > installation on a separate computer".
> >
> > In fact, it means to install using the package files in some local directory,
> > i.e., "assume the packages are already downloaded".
> >
> > It would be reasonable to copy over downloaded packages.
> >
> > I believe there are commands / techniques that would then make it fairly
> > easy to install that specific set of packages "from scratch" (but from
> > the local copy of the packages).  Copying *installed* file hierarchies
> > is trickier because of permission / ownership concerns.
> 
> Does Cygwin have a way to dump the list of installed packages, and
> feed that list back to Cygwin setup.exe?

You just call `cygcheck -cd' and create a tiny script massaging the output
into a comma-separated list.

This you can feed into a setup-x86-64.exe -P call.


Corinna

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

