From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from re-prd-fep-045.btinternet.com (mailomta9-re.btinternet.com [213.120.69.102]) by sourceware.org (Postfix) with ESMTPS id DE2BF3851C09 for ; Sun, 28 Jun 2020 14:12:19 +0000 (GMT) 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.turney@dronecode.org.uk Received: from re-prd-rgout-001.btmx-prd.synchronoss.net ([10.2.54.4]) by re-prd-fep-045.btinternet.com with ESMTP id <20200628141218.NUWN4080.re-prd-fep-045.btinternet.com@re-prd-rgout-001.btmx-prd.synchronoss.net> for ; Sun, 28 Jun 2020 15:12:18 +0100 Authentication-Results: btinternet.com; auth=pass (PLAIN) smtp.auth=jonturney@btinternet.com X-Originating-IP: [31.51.206.31] X-OWM-Source-IP: 31.51.206.31 (GB) X-OWM-Env-Sender: jonturney@btinternet.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 Received: from [192.168.1.117] (31.51.206.31) by re-prd-rgout-001.btmx-prd.synchronoss.net (5.8.340) (authenticated as jonturney@btinternet.com) id 5ED9BDD0043A2330 for cygwin@cygwin.com; Sun, 28 Jun 2020 15:12:18 +0100 Subject: Re: Listing only manually installed package To: The Cygwin Mailing List References: <20200627.013459.435705702566725844.yasu@utahime.org> <0310877b-25b4-168d-f605-98b924ca6b62@SystematicSw.ab.ca> <20200627.030404.1219230595825821536.yasu@utahime.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-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit 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@cygwin.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: , X-List-Received-Date: Sun, 28 Jun 2020 14:12:21 -0000 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.