X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.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.turney@dronecode.org.uk
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
Subject: Re: Listing only manually installed package
To: The Cygwin Mailing List <cygwin@cygwin.com>
References: <20200627.013459.435705702566725844.yasu@utahime.org>
 <0310877b-25b4-168d-f605-98b924ca6b62@SystematicSw.ab.ca>
 <20200627.030404.1219230595825821536.yasu@utahime.org>
 <b400e131-e27d-3187-2d65-0a5a29cefbae@SystematicSw.ab.ca>
From: Jon Turney <jon.turney@dronecode.org.uk>
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: <b400e131-e27d-3187-2d65-0a5a29cefbae@SystematicSw.ab.ca>
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@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.com>

On 26/06/2020 23:20, Brian Inglis wrote:
> On 2020-06-26 12:04, Yasuhiro KIMURA wrote:
>> From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
>> 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 <anrdaemon@yandex.ru>
>> 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
