From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 7E1383857C70; Thu, 23 Nov 2023 15:24:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7E1383857C70 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1700753097; bh=wjQVquFQ59402x9ZYOE2FCaYvLVhLG8Dp7tSUt3iyx4=; h=Date:From:To:Subject:Reply-To:References:In-Reply-To:From; b=B7XUSPf2pvA1j3V+iWvugQgVAba9GvbqPlaoEUdIYTwV/Xw0qAggGwXw5GUnOTRhX dGukYPpEYGtZKEexVbo6Taw2eaeZgyGJGmsbOU9RjpAzVuRn3t0yt87nZD8twHJNH7 nAsQmFFZ7TTIEEg5lVvq8Zmhnbe3n3h5Nd0JhgUw= Received: by calimero.vinschen.de (Postfix, from userid 500) id B9D92A80B9F; Thu, 23 Nov 2023 16:24:55 +0100 (CET) Date: Thu, 23 Nov 2023 16:24:55 +0100 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Capturing a Cygwin instance from another PC Message-ID: Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <147f983f-eab8-4605-11e6-14709c56d87b@cs.umass.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: 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