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 7F60F3858CD1 for ; Mon, 27 Nov 2023 02:46:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7F60F3858CD1 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 7F60F3858CD1 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=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 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=6rHkIwl39K7dm+6VHugGEEuMTPFugOMYsF0XilwJikA=; b=hD0aCRKEblAqmJpY9Qzio7Wv2b HsFa4kqvysDMQ2IrhozlziJG1QAlG8FjdGGPlVtsU/I1TfLOp8BHaXhGWJc9JkQJ6VrBsjVozWnP8 P92L+hc86qZYvLoYj+jRraDQZs/x4gO/BW41ZDLV2+Pp6SiLtRrZ72qz6i6HH+JUukvRHjRqT+8Hj +NZfVVdDP3YE9k5RG4Jnp1tXj+2RIXf6QSb3fTkul/1mgGLNGuoeqySRFf6VnC45MdAFak7ZQmXrg tPMGImx7o5eGEpUT1NLWj+KzzEVCw9T2Zutbpa7FeJRZvWKribqxhesSiltAQXMpm4KqdMxKXU4fW 3aUe6y1A==; Received: from [127.0.0.1] (port=56360 helo=www16.qth.com) by www16.qth.com with esmtpa (Exim 4.96.2) (envelope-from ) id 1r7RdW-0077cP-07; Sun, 26 Nov 2023 20:46:14 -0600 MIME-Version: 1.0 Date: Sun, 26 Nov 2023 21:46:13 -0500 From: Chris Wagner 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@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.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 List-Id: *** 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.