From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailout10.t-online.de (mailout10.t-online.de [194.25.134.21]) by sourceware.org (Postfix) with ESMTPS id 0A5173858D1E for ; Thu, 8 Sep 2022 06:00:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0A5173858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=t-online.de Authentication-Results: sourceware.org; spf=none smtp.mailfrom=t-online.de Received: from fwd78.dcpf.telekom.de (fwd78.aul.t-online.de [10.223.144.104]) by mailout10.t-online.de (Postfix) with SMTP id 5E49C117FF; Thu, 8 Sep 2022 08:00:37 +0200 (CEST) Received: from [192.168.2.101] ([79.230.170.147]) by fwd78.t-online.de with (TLSv1.3:TLS_AES_256_GCM_SHA384 encrypted) esmtp id 1oWAaa-0WdrxQ0; Thu, 8 Sep 2022 08:00:37 +0200 Subject: Re: How to get setup to *re*install a package from the command line To: moss@cs.umass.edu, cygwin@cygwin.com References: From: Christian Franke Message-ID: Date: Thu, 8 Sep 2022 08:00:34 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 SeaMonkey/2.53.12 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-TOI-EXPURGATEID: 150726::1662616837-793AD9DD-2368A286/0/0 CLEAN NORMAL X-TOI-MSGID: 2d2a7cfd-2e4f-4662-84cc-fc1deb80d262 X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_DMARC_STATUS,KAM_LAZY_DOMAIN_SECURITY,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,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: Eliot Moss wrote: > I've not been able to find a way to get setup, when used from the command > line, to *re*install an existing package, so as to repair any brokenness. > > For context, I had my disk get trashed and restored from a cloud backup. > However, that tool is not entirely competent about everything, e.g., > links. Often such backup tools cannot handle reparse points, so for the future you might want to set CYGWIN=winsymlinks:lnk or ...:sys. The latter requires that the tool handles SYSTEM files properly. Another problem might occur if incremental backups are used: If a DLL is rebased, the write timestamp does not change because memory mapped files are used. Then there is (AFAIK) no way to detect file modification except comparing its data with previous backup. A full rebase after restore should help then. > > Most programs work ok, but others clearly are not quite right.  So I > want to > try re-installing all installed packages.  But there does not seem to > be any > way to get command line setup to Reinstall something that is already > installed, though the GUI tool can certainly do it. If data in /etc/setup is still intact, a quick way with the GUI should be run to the recent 2.921 RC release of setup, select the "Up To Date" view and then press and hold Ctrl+R. https://sourceware.org/pipermail/cygwin/2022-August/252146.html -- Regards, Christian