From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from www16.qth.com (www16.qth.com [69.16.238.67]) by sourceware.org (Postfix) with ESMTPS id 65AC23858CD1 for ; Mon, 27 Nov 2023 02:36:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 65AC23858CD1 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=plebeian.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=plebeian.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 65AC23858CD1 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=69.16.238.67 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 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=plebeian.com; s=default; h=Content-Transfer-Encoding:Content-Type: Message-ID:References:In-Reply-To:Subject:Cc:To:From:Date:MIME-Version:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=puSL2RuIOenL7cQKIIUzI9yowF5PTmYC6AleQcSkX6I=; b=wL7oEBa6LhVMhzCfppf8fvEDQ9 UGVnV9/+pyeefYCL+qaeZ0Hcz+4FBlbN3nWrfrP+ffGRGveGHjnW0PkiP+SDYRpK0JgtUQgopUnKy ZlCQlziyC9JQ/onUzWItu3dAaAyfu2cp+HC52+f2rvGV1PSTrC4BnKXlwyt7P4TMdzX1Gba3q5WSw nVsKleiqgtMcySGbAoeqcaJA87dlIIJSD6ShzfoPishz10KYfzV7qzCeWzjRQgb/rdTAXy8SoPffw EGCLR/cq8O99NAx9ilGhInO96hL5Wf70/x+m+3x/k9BZb6TZWKRBItze2aPB3HdLez3zPALOPt/g5 nh1xxosQ==; Received: from [127.0.0.1] (port=54312 helo=www16.qth.com) by www16.qth.com with esmtpa (Exim 4.96.2) (envelope-from ) id 1r7RUV-0075Vg-2p; Sun, 26 Nov 2023 20:36:55 -0600 MIME-Version: 1.0 Date: Sun, 26 Nov 2023 21:36:55 -0500 From: Chris Wagner To: Jose Isaias Cabrera Cc: cygwin List Subject: Re: Capturing a Cygwin instance from another PC In-Reply-To: References: User-Agent: Roundcube Webmail/1.6.0 Message-ID: <09578ac85d3f64c90f2b6610545bd8dc@plebeian.com> X-Sender: wagnerc@plebeian.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 List-Id: 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.