X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C188D3857C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1701107073; bh=cCVvt0pyQv5buVsehYOtvJvhNS5FDCoxNbbIxQ+q46Q=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=vDDmehFdJkFX8aqMPDicpoz8K4dt6GjVz93W5xpq26WkTb15Z9Nter4WMgNo1Udqk sMJZUOHIXh8q3ElwgQImF3L1KDbKm/U66AcanNqhjHii+H088cDAdMRD4pSp0Prtd3 XR+o9Wxae+FQFrSphXf4IpU7DtUeBN9D/9lMa8+k= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D56F63858C2D ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D56F63858C2D ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701107038; cv=none; b=riA6IQlKG5iunFuw9npPuWHDiANit4YevUPGl8T7+YxIKi22Q2iagumllwPxs8cDRqpTfT0jJEyb0AhYjjK9On/SmG4DQ1Ns1JTjY5yYccmA+htJPrtPu66x0tNT0GR68TIylOpI7KP+4bLl0r40dmCZyf6EQbrzOly1csxFyXY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701107038; c=relaxed/simple; bh=LvmrQFvPj0xb2ELS9Lk74/sOZoXgaL5UAQ2hIElml4s=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=nxprFeNwko4SW/5ll/pp50zxDSDe3B+QSNxVV5JLxPRp6RYs3imvhDnnza9New3SfSHkGxKmH3CUKIikipxlxrlJ3UI75mK7FodZXSwDgUK50mEqtDk6bTOp6Sxa2f6fbPDB8vvFt/03a490cV5UOh/xi1heXW9wQBKxJcN1zzk= ARC-Authentication-Results: i=1; server2.sourceware.org X-Authority-Analysis: v=2.4 cv=KJNJsXJo c=1 sm=1 tr=0 ts=6564d55b a=DxHlV3/gbUaP7LOF0QAmaA==:117 a=DxHlV3/gbUaP7LOF0QAmaA==:17 a=IkcTkHD0fZMA:10 a=L0L4DeM5gjly-F12uhUA:9 a=7Zwj6sZBwVKJAoWSPKxL6X1jA+E=:19 a=QEXdDO2ut3YA:10 Message-ID: <7b39e912-1cf4-4ab7-b3a4-c0973d186594@Shaw.ca> Date: Mon, 27 Nov 2023 10:43:54 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Capturing a Cygwin instance from another PC Content-Language: en-CA To: cygwin AT cygwin DOT com References: <09578ac85d3f64c90f2b6610545bd8dc AT plebeian DOT com> <87plzvd2ok.fsf@> Organization: Inglis In-Reply-To: <87plzvd2ok.fsf@> X-CMAE-Envelope: MS4xfM4vqpQWpbr8aoQujbeZ+50K5c3zqI6hx2eWszy5iyaBmjZ8lAPBgY9dH3atEDj5pSIop3V6ufq6BFrx3WV9qXleDqpAwWv6JzfH3r6MxChbv5lF0ihX q9benNOIsWa8G5zWTbYhziAHIPDpD8DirBG6pX1nF5rjm38+EFbqU2SZ8LqBRh88QuNe5JfSN6x7Sw== X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, 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: Brian Inglis via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Brian Inglis 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 3ARHiYKl006853 On 2023-11-27 01:24, ASSI via Cygwin wrote: > Chris Wagner via Cygwin writes: >> 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 > That will lose the information about which packages were installed by > explicit user request vs. installed as a dependency. What that means is the complete information is only available in: /etc/setup/installed.db which has header: INSTALLED.DB 3 then a list of installed packages in which each line specifies 3 fields: NAME NAME-VERSION-RELEASE.tar.bz2 MANUALLY_PICKED_FLAG in that 2nd field .tar.bz2 is the historically available download format but only VERSION-RELEASE is now significant, and the only packages you should be selecting to install are those which have a 3rd field manually picked flag == 1 as the others with 0 are automatically installed dependencies e.g. $ awk '1 < FNR && /1/ == $3 { printf( "%s ", $1) }; END { printf( "\n" ) }' \ ~/cygwin-64t/etc/setup/installed.db | wc 1 52 686 $ grep -c '\s0$' ~/cygwin-64t/etc/setup/installed.db 364 $ awk '1 < FNR && /1/ == $3 { printf( "%s ", $1) }; END { printf( "\n" ) }' \ ~/cygwin-64/etc/setup/installed.db | wc 1 884 12124 $ grep -c '\s0$' ~/cygwin-64/etc/setup/installed.db 1638 so from 2-7 times as many packages as manually picked could be dependencies automatically installed. -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry -- 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