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.3.2 sourceware.org DE2BF3851C09 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dronecode.org.uk Authentication-Results: sourceware.org; spf=none smtp.mailfrom=jon DOT turney AT dronecode DOT org DOT uk Authentication-Results: btinternet.com; auth=pass (PLAIN) smtp.auth=jonturney AT btinternet DOT com X-Originating-IP: [31.51.206.31] X-OWM-Source-IP: 31.51.206.31 (GB) X-OWM-Env-Sender: jonturney AT btinternet DOT com X-VadeSecure-score: verdict=clean score=0/300, class=clean X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgeduhedrudeliedgjeehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuueftkffvkffujffvgffngfevqffopdfqfgfvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpeflohhnucfvuhhrnhgvhicuoehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkqeenucggtffrrghtthgvrhhnpeeguefhkedvfeeigefhhedtjeehieegtdehhffhheffgfehheegtdffleejteeuueenucfkphepfedurdehuddrvddtiedrfedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheplgduledvrdduieekrddurdduudejngdpihhnvghtpeefuddrhedurddvtdeirdefuddpmhgrihhlfhhrohhmpeeojhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukhequceuqfffjgepkeeukffvoffkoffgpdhrtghpthhtohepoegthihgfihinhestgihghifihhnrdgtohhmqe X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean Subject: Re: Listing only manually installed package To: The Cygwin Mailing List References: <20200627 DOT 013459 DOT 435705702566725844 DOT yasu AT utahime DOT org> <0310877b-25b4-168d-f605-98b924ca6b62 AT SystematicSw DOT ab DOT ca> <20200627 DOT 030404 DOT 1219230595825821536 DOT yasu AT utahime DOT org> From: Jon Turney Message-ID: <33a21818-8fa4-e05a-64c5-90c0a01bdb63@dronecode.org.uk> Date: Sun, 28 Jun 2020 15:12:17 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-GB X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, FORGED_SPF_HELO, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" On 26/06/2020 23:20, Brian Inglis wrote: > On 2020-06-26 12:04, Yasuhiro KIMURA wrote: >> From: Brian Inglis >> Subject: Re: Listing only manually installed package >> Date: Fri, 26 Jun 2020 11:20:26 -0600 >> >>> $ grep '\s1$' /etc/setup/installed.db # manual >>> $ grep '\s0$' /etc/setup/installed.db # auto >>> >>> $ awk '1 == $3' /etc/setup/installed.db # manual >>> $ awk '0 == $3' /etc/setup/installed.db # auto >>> >>> I can't remember what the pristine state of the Base category packages are, >>> I've messed around with the setup files so much for so long. >> >> I checked /etc/setup/installed.db on my 32bit and 64bit console but in >> each case all lines end with "0". Therefore, >> >> From: Andrey Repin >> Subject: Re: Listing only manually installed package >> Date: Fri, 26 Jun 2020 20:15:21 +0300 >> >>> AFAIK, there's no way to tell if a package was manually selected or not. >>> Cygwin's setup just don't store this information. >> >> As you say, unfortunately there seems to be no way to tell if a >> package was installed manually or automatically. > > Just checked the setup sources, so unless there is a bug, you are running a > setup version over 5 years old, or not running Cygwin setup, user_picked is part > of the package metadata that is still read from and written to installed.db. Unfortunately, it seems there is a bug (since 2.895, 18 months ago, ...), and this information doesn't always get recorded correctly. Thanks for drawing my attention to this. -- 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