X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 172DE3858008
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1701052657;
	bh=QqAOXnOaXWzM7k1Bbl8fqWdpQi2v3MjdRyRXN5675As=;
	h=Date:To:Cc:Subject:In-Reply-To:References:List-Id:
	 List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
	 From:Reply-To:From;
	b=nXW98wkXfX7athKWaBHG9q9ivY51EeKoI3pF0lFQFNPJz6xMEBlyaD/MhI0uOWWor
	 /BGjXrMoKqinLhhjqLzChc5FywRqzmZlMLjmRfMU/2HToujCVuDD3O2rC8lPWUU3k8
	 sPT6NgjbK0JZ1ivh3ndCFa/HL6Yyy4ebejkAoHho=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 65AC23858CD1
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 65AC23858CD1
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701052620; cv=none;
 b=shvpDRmcisBCBQfLdgqcTu45xwCNq+BZwE9Fd59vyM/gkJPJr3v2O2P+9sbnwTAOK90YAdSHo9KODe0X8nS7nICSmsea5EffMGacJHp8liVplh3tC0+vSn+/dWWfyySJJZerCQ/2PehsyHBCGez0PTy7H/O5OljpKpKe6Pgnudw=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1701052620; c=relaxed/simple;
 bh=uxhsqz0KzOMsLshh6zpeRJd3UMlyHr/qsJhxqgbECAY=;
 h=DKIM-Signature:MIME-Version:Date:From:To:Subject:Message-ID;
 b=tXykjhZUmbleZhgL00OXUsVSSxeapor18Hmw37qCns9TWf6c7gc+IaLHpotcghYPEuDx73uhLC35cDxO1dzhY9URcq+mXooVK0ChnZMk4uU4LwGPGujhSBoieFDd8Ff+P262pZQzjuwZUPMWVBseZ9eD4a3iq0d3z3c6X6Ecvps=
ARC-Authentication-Results: i=1; server2.sourceware.org
MIME-Version: 1.0
Date: Sun, 26 Nov 2023 21:36:55 -0500
To: Jose Isaias Cabrera <jicman@outlook.com>
Cc: cygwin List <cygwin@cygwin.com>
Subject: Re: Capturing a Cygwin instance from another PC
In-Reply-To: <DB9P251MB00639D5E85344DBC6BB9E9A2DEBAA@DB9P251MB0063.EURP251.PROD.OUTLOOK.COM>
References: <DB9P251MB00639D5E85344DBC6BB9E9A2DEBAA@DB9P251MB0063.EURP251.PROD.OUTLOOK.COM>
User-Agent: Roundcube Webmail/1.6.0
Message-ID: <09578ac85d3f64c90f2b6610545bd8dc@plebeian.com>
X-Sender: wagnerc@plebeian.com
X-AntiAbuse: This header was added to track abuse,
 please include it with any abuse report
X-AntiAbuse: Primary Hostname - www16.qth.com
X-AntiAbuse: Original Domain - cygwin.com
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - plebeian.com
X-Get-Message-Sender-Via: www16.qth.com: authenticated_id: wagnerc@plebeian.com
X-Authenticated-Sender: www16.qth.com: wagnerc@plebeian.com
X-Source: 
X-Source-Args: 
X-Source-Dir: 
X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,
 SPF_PASS, TXREP,
 T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
 server2.sourceware.org
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: Chris Wagner via Cygwin <cygwin@cygwin.com>
Reply-To: Chris Wagner <wagnerc@plebeian.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
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 3AR2bcCG028136

On 2023-11-22 9:53 am, Jose Isaias Cabrera via Cygwin 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.
> 
> Any idea how to get this done automatically? I know I can go and create 
> folders manually, etc., but it kind of a pain. Any help would be 
> greatly appreciated. Thanks.
> 
> josé

Unfortunately you can't "just copy it" because Cygwin sets up file 
permissions and creates symlinks in very particular ways.  Even using 
WinRAR in Admin mode with all the capturing things turned on won't give 
you an exact copy.

To create a snapshot of a Cygwin installation you have to do it within 
Cygwin itself and then unpack it in another Cygwin environment.  The 
best option is this:

1. On the source: tar -vczf /cygwin64.tgz /etc /sbin /usr /var
2. Install only base-cygwin on the new machine using setup.exe
3. Unpack on the new machine: cd /; tar -vxzf /cygwin64.tgz


If you just want to duplicate the package selection this trick is all 
you need.

1. Get the current list: cygcheck -cd |perl -ane '$\=","; print $F[0]'
2. Ignore the "Cygwin,Package" at the front.
3. Copy all that and put it as the command line argument to setup.exe -P

You can see setup options with setup.exe -h.


HTH, thanks.



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

