delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/02/09/13:06:39

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DBDE13858D28
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=dinwoodie.org
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dinwoodie.org
Date: Wed, 9 Feb 2022 18:05:59 +0000
From: Adam Dinwoodie <adam AT dinwoodie DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: Switch to a new PC
Message-ID: <20220209180559.fpct3h75glg4rvuh@lucy.dinwoodie.org>
References: <CA+GYywCd49GJLAGYJrKbwizZxAW+LwLB0S9SpieqwRyEikVEVw AT mail DOT gmail DOT com>
<CANV2+nXEFQYQw5FU1M-mqQnFCk28_nWYRg0fwm5VAm-EN6yWxw AT mail DOT gmail DOT com>
<1c710a38-0f55-e150-ea6d-83ce8de48557 AT towo DOT net>
<CAB8Xom9HBdG4p4iUwJUemELnH=7U7fPgHdOsdwyt-Pk4EVepSQ AT mail DOT gmail DOT com>
<CA+GYywD8-c4FxXp_GbA9auU87cdCmj8oXf7hqsAKdSf+0n1TTQ AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CA+GYywD8-c4FxXp_GbA9auU87cdCmj8oXf7hqsAKdSf+0n1TTQ@mail.gmail.com>
X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
PDS_RDNS_DYNAMIC_FP, RDNS_DYNAMIC, SPF_HELO_PASS, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On Wed, Feb 09, 2022 at 04:12:28PM +0100, Vanda Vodkamilkevich wrote:
> On Fri, Feb 4, 2022 at 13:12  AM  marco.atzeri  wrote:
> 
> >> I wouldn't expect most tools to work on special files in /dev. Even tar
> >> fails on /proc, it would begin to pack your local registry...
> >> Make a basic installation on the new system, then sync the rest.
> >> An even cleaner way might be to clone your installation via setup, using
> >> /etc/setup/installed.db - maybe someone has a script for that -
> >> and then just sync the /home hierarchy.
> >
> >script I wrote some time ago for re-installation
> >
> >
> https://stackoverflow.com/questions/46829532/cygwin-save-package-selections-for-later-reinstall/
> >
> >
> Just for the record:
> I just played with the script provided in stackoverflow which generates a
> bat file, and it seems that the behaviour of the '-P' switch of setup  has
> changed because now it explicitely needs the version of the package (at
> least for me it didn't worked without the version number:  " -P
> package=version_as_seen_by_cygcheck") . Can someone (probably Jon Turney)
> confirm this usage of the '-P' switch (BTW the mandatory '='  is explained
> nowhere - Nor in 'setup -h' or the setup web pages - and can be seen only
> in  the source code).

I don't think this is correct.  I use the setup program's -P option
regularly, including with the latest 2.917 release, and it successfully
installs packages.  Indeed, I've just tried running it to install
2048-cli (given it's a package I know I don't have installed) and it
successfully installed the package without specifying a version number.

Can you give a bit more information about exactly what commands you're
running, what you're expecting to happen, and what precisely happens
instead?

> By needing the version number the script on stackoverflow will then
> generate a "too long" command in the bat file and it will crash; I had to
> modify it manually to split the command line in 4 ...
> Note on the script: if you forgot to run it before loosing your cygwin
> tree, it can still work after a 'Base' installation if you kept the old
> installed.db file and replace (temporary) the actual installed.db with this
> one :)

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019