public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
To: cygwin@cygwin.com
Subject: Re: Listing only manually installed package
Date: Fri, 26 Jun 2020 16:20:06 -0600	[thread overview]
Message-ID: <b400e131-e27d-3187-2d65-0a5a29cefbae@SystematicSw.ab.ca> (raw)
In-Reply-To: <20200627.030404.1219230595825821536.yasu@utahime.org>

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.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in IEC units and prefixes, physical quantities in SI.]

  parent reply	other threads:[~2020-06-26 22:20 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-26 16:34 Yasuhiro KIMURA
2020-06-26 17:15 ` Andrey Repin
2020-06-26 18:04   ` Yasuhiro KIMURA
2020-06-26 18:37     ` Brian Inglis
2020-06-26 22:20     ` Brian Inglis [this message]
2020-06-27  5:02       ` Cygwin
2020-06-27 17:35         ` Brian Inglis
2020-06-27  8:50       ` Yasuhiro KIMURA
2020-06-28 14:12       ` Jon Turney
2020-06-28 18:47         ` Brian Inglis
2020-06-27  7:40     ` Csaba Raduly
2020-06-26 17:20 ` Brian Inglis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b400e131-e27d-3187-2d65-0a5a29cefbae@SystematicSw.ab.ca \
    --to=brian.inglis@systematicsw.ab.ca \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).