From: Marco Atzeri <marco.atzeri@gmail.com>
To: cygwin@cygwin.com
Subject: Re: How to uninstall packages that were installed as dependency but are no longer required
Date: Tue, 30 Mar 2021 20:36:37 +0200 [thread overview]
Message-ID: <154a6ca4-d485-a99c-9105-25382b5de9d8@gmail.com> (raw)
In-Reply-To: <d11aef7a-b413-db46-7a59-15488976d464@SystematicSw.ab.ca>
On 30.03.2021 19:18, Brian Inglis wrote:
> On 2021-03-30 02:07, Marco Atzeri via Cygwin wrote:
>> On 30.03.2021 07:51, Yasuhiro Kimura wrote:
>>> If you repeat the update of installed Cygwin packages for a while,
>>> it's quite possible that there are some packages that were installed
>>> as dependency but are no longer required by any others.
>>>
>>> Then is there any way to detect and uninstall such ones?
>>>
>>> I expect such way as `apt autoremove` of Debian or `dnf autoremove` of
>>> Fedora.
>
>> as currently we are not tracking between choosen packages
>> and installed by dependency, Cygwin is lacking such capabilities
>
> The undocumented third field in installed.db is automatic dependency 0 /
> manually picked 1:
>
> $ sort -k3 /etc/setup/installed.db | uniq -cf2
> 1 INSTALLED.DB 3
> 1203 _autorebase _autorebase-001007-1.tar.bz2 0
> 467 aalib aalib-1.4rc5-12.tar.bz2 1
>
it really depends on the history of the package,
I have tons of package with "0" that in reality were picked
long time ago.
So it is not 100% trustable on long time installation
next prev parent reply other threads:[~2021-03-30 18:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-30 5:51 Yasuhiro Kimura
2021-03-30 8:07 ` Marco Atzeri
2021-03-30 9:46 ` Yasuhiro Kimura
2021-03-30 17:18 ` Brian Inglis
2021-03-30 18:36 ` Marco Atzeri [this message]
2021-03-30 17:47 ` Achim Gratz
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=154a6ca4-d485-a99c-9105-25382b5de9d8@gmail.com \
--to=marco.atzeri@gmail.com \
--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).