X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7E1383857C70 Date: Thu, 23 Nov 2023 16:24:55 +0100 To: cygwin AT cygwin DOT com Subject: Re: Capturing a Cygwin instance from another PC Message-ID: Mail-Followup-To: cygwin AT cygwin DOT com References: <147f983f-eab8-4605-11e6-14709c56d87b AT cs DOT umass DOT edu> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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: Corinna Vinschen via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Corinna Vinschen Content-Type: text/plain; charset="utf-8" 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 3ANFPX5D016399 On Nov 22 23:44, Cedric Blancher via Cygwin wrote: > On Wed, 22 Nov 2023 at 17:15, Eliot Moss via Cygwin 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