X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4F8023858290 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1701053189; bh=zn25rSpgHOWsFGw/LWudf74geH1bKEuccVkJhxVDkN0=; 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=qlV0+CW5vgIdfTNc5+kSINvSrzRJhGj6ErbzokS5+fWUZFnhg+tCXydFpBcWeBrLB YkG6jwh+lZM2Yurl29pNIP8HNSjdGn+HBBK9D90NJWT4BSWvZbj3lLN0pJpFkaAI1A 3fex0X+0a/RVKB9JeC+nzglr5iZpgNaSkTx/tXfc= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7F60F3858CD1 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7F60F3858CD1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701053175; cv=none; b=KjRSWS8LR79VgM7toCAZyM/acFG+i/bW/ONf+hu9gQilVt2oWc4D0OfSsD7YQdYubQZbfGclfP3Eva+MP3PMnsGloPqWHwn8RpR67VsNbO5irmsSugvcHdaGK83NWf0iGn6i8C2Fi3u5pYyyeDffTRscYnNsKxSoiqY8cTXOupA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701053175; c=relaxed/simple; bh=qfnLetqi6V7FTUD0L+7qz5D5zAdzzW+aTSJlBGsTk9I=; h=DKIM-Signature:MIME-Version:Date:From:To:Subject:Message-ID; b=dC0ApQXEpjf5nIxsuSpu/70VsSRlij7iTdF7Wn0iIlm7eT8r2/9PGu8k5jNGJK+kzPT1YehclWQIYYcHYRHKPSqYePnGA75BePf6LDaUC9L4XJpF1QJmiIZQzl4WEhLe8ZT9WjuWtEomMAg2u7pTM56nvjZvP9RdNuifPVgaY/8= ARC-Authentication-Results: i=1; server2.sourceware.org MIME-Version: 1.0 Date: Sun, 26 Nov 2023 21:46:13 -0500 To: Jose Isaias Cabrera Cc: cygwin List Subject: Re: Capturing a Cygwin instance from another PC (CORRECTION) In-Reply-To: References: User-Agent: Roundcube Webmail/1.6.0 Message-ID: X-Sender: wagnerc AT plebeian DOT 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 AT plebeian DOT com X-Authenticated-Sender: www16.qth.com: wagnerc AT plebeian DOT com X-Source: X-Source-Args: X-Source-Dir: X-Spam-Status: No, score=-3.8 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 AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Chris Wagner via Cygwin Reply-To: Chris Wagner Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 3AR2kUBP030081 *** CORRECTION 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 the *** Base category *** 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