From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by sourceware.org (Postfix) with ESMTPS id CE6F23851416 for ; Tue, 30 Mar 2021 08:07:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org CE6F23851416 Received: by mail-ej1-x629.google.com with SMTP id ap14so10302839ejc.0 for ; Tue, 30 Mar 2021 01:07:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=SW5rS8bYNmqYfJ0mbN/RMVhS8kdUKk2ZfXVtDt8uMeE=; b=ZFkNEpK60iAPJEU/oTAPyMVnoLz0oN9E+5yeaZxCpiJxA7q1ytDhFtMzovv5bSZ06B D6fSKZ9VTb3xW/szvWKnaw4ElLtPIgijx629fp0dJDEDKlG+9ekcW6W+vR5zLxM98AIr MMCN67c86YpxQ32DZrIeBHYRYsVcrKZQ/kkJLGW0llu+jCaAEYpC4DMWLRuhG6fdLWYF 5DBNzwnCFAqpviG1IKi8nRy4MVTWwkaMmzOKhDNkNWN7WrE9Ah7SQ499H3+o7xjQkb93 yMco1dfGYxZBzLipsYZo2mAMRr8Ev/hq7tVjqKsFJWUwBksjBH/avSGH5iLcfxdAomhZ LA2g== X-Gm-Message-State: AOAM532bnoGnjmgPPo/53ILzEaBUwInvzild+HA6GXMDv1txb4uGikwp 461petW2oURtUMRXeiN2aypyIrOa6hvT1Q== X-Google-Smtp-Source: ABdhPJxX1WjW7W46beD/Iakh1ZNJ3JZhTi94UMLLt6OqP5XxUzKIMMcM8Cpywy75V/4kG2Cw5U/6Cw== X-Received: by 2002:a17:907:16a8:: with SMTP id hc40mr31672491ejc.40.1617091624932; Tue, 30 Mar 2021 01:07:04 -0700 (PDT) Received: from ?IPv6:2003:cc:9f36:b84c:99be:87ff:e7f4:311d? (p200300cc9f36b84c99be87ffe7f4311d.dip0.t-ipconnect.de. [2003:cc:9f36:b84c:99be:87ff:e7f4:311d]) by smtp.gmail.com with ESMTPSA id cy5sm10512034edb.46.2021.03.30.01.07.04 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Mar 2021 01:07:04 -0700 (PDT) Subject: Re: How to uninstall packages that were installed as dependency but are no longer required To: cygwin@cygwin.com References: <20210330.145159.2203755649720422295.yasu@utahime.org> From: Marco Atzeri Message-ID: <4c3c2dc4-6de3-9a3b-b39a-986e651275c3@gmail.com> Date: Tue, 30 Mar 2021 10:07:04 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <20210330.145159.2203755649720422295.yasu@utahime.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: it Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham 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: Tue, 30 Mar 2021 08:07:07 -0000 On 30.03.2021 07:51, Yasuhiro Kimura wrote: > Hello, > > 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. > > Best Regards. > > --- > Yasuhiro Kimura as currently we are not tracking between choosen packages and installed by dependency, Cygwin is lacking such capabilities the most likely candidates for removal are the different version of the same libraries $ cygcheck -cd | grep "^lib" | tee lib.txt in my case I see libvpx1 1.3.0-2 libvpx3 1.5.0-1 libvpx4 1.6.1-1 libvpx5 1.7.0-1 $ cygcheck-dep -q -n libvpx1 libvpx3 libvpx4 libvpx5 libvpx1: is needed for ( ) libvpx3: is needed for ( ) libvpx4: is needed for ( ) libvpx5: is needed for ( gstreamer1.0-plugins-good libvpx-devel ) Regards Marco