Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #262249

Re: Understanding package dependencies

Path csiph.com!1.us.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!news.servidellagleba.it!bofh.it!news.nic.it!robomod
From Greg Wooledge <greg@wooledge.org>
Newsgroups linux.debian.user
Subject Re: Understanding package dependencies
Date Sun, 08 Oct 2023 14:40:01 +0200
Message-ID <HmBeF-eo1f-3@gated-at.bofh.it> (permalink)
References <Hmei7-e9Z4-23@gated-at.bofh.it> <Hmfe9-eaxP-3@gated-at.bofh.it> <Hmfxv-eaEf-7@gated-at.bofh.it> <HmjB7-ecWJ-9@gated-at.bofh.it> <HmkdP-edoX-19@gated-at.bofh.it> <Hmkxc-edvr-11@gated-at.bofh.it> <HmxE5-elRd-5@gated-at.bofh.it>
X-Original-To debian-user@lists.debian.org
X-Mailbox-Line From debian-user-request@lists.debian.org Sun Oct 8 12:30:14 2023
Old-Return-Path <greg@wooledge.org>
X-Amavis-Spam-Status No, score=-6.207 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, RDNS_NONE=0.793] autolearn=no autolearn_force=no
X-Policyd-Weight using cached result; rate: -4.6
Mail-Followup-To debian-user@lists.debian.org
MIME-Version 1.0
Content-Type text/plain; charset=iso-8859-1
Content-Disposition inline
Content-Transfer-Encoding 8bit
X-Mailing-List <debian-user@lists.debian.org> archive/latest/803921
List-ID <debian-user.lists.debian.org>
List-URL <https://lists.debian.org/debian-user/>
List-Archive https://lists.debian.org/msgid-search/ZSKgvu60ZlKzMnqa@wooledge.org
Approved robomod@news.nic.it
Lines 38
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Sun, 8 Oct 2023 08:29:50 -0400
X-Original-Message-ID <ZSKgvu60ZlKzMnqa@wooledge.org>
X-Original-References <trinity-6995a05b-c6fd-4675-8e1f-7373c22cced9-1696679253394@3c-app-gmx-bap18> <ee9aa373-c130-4acc-91a0-818bb990c716@home.arpa> <ZSFb9xpV77X9m5FH@wooledge.org> <trinity-73878c79-917b-4e02-b49c-e8842a0803d5-1696699464156@3c-app-gmx-bap18> <878r8ecmps.fsf@turtle.gmx.de> <ZSGnRIO6WnwNsWfN@wooledge.org> <uftqbu$jvk$1@ciao.gmane.io>
Xref csiph.com linux.debian.user:262249

Show key headers only | View raw


On Sun, Oct 08, 2023 at 10:47:58AM +0200, Jörg-Volker Peetz wrote:
> Greg Wooledge wrote on 07/10/2023 20:45:
> > unicorn:~$ apt list '?provides(~nlsb-base)'
> > Listing... Error!
> > E: input:0-21: error: Unrecognized pattern '?provides'
> >     ?provides(~nlsb-base)
> >     ^^^^^^^^^^^^^^^^^^^^^
> > 
> How about
> 
>   apt list '?reverse-depends(?name(lsb-base))'

Reverse-depends isn't the same as Provides, though.

unicorn:~$ aptitude search '~Pmail-transport-agent'
p   courier-mta                     - Courier mail server - ESMTP daemon        
p   courier-mta:i386                - Courier mail server - ESMTP daemon        
p   dma                             - lightweight mail transport agent          
p   dma:i386                        - lightweight mail transport agent          [...]
unicorn:~$ apt list '?reverse-depends(~nmail-transport-agent)'
Listing... Done
unicorn:~$ 

The only way I know of, to get that list from apt, is by parsing it
out of the output of "apt-cache showpkg".

unicorn:~$ apt-cache showpkg mail-transport-agent | sed -n '/^Reverse Provides/,$p'
Reverse Provides: 
mta-local 1.0 (= )
exim4-daemon-light 4.96-15+deb12u2 (= )
exim4-daemon-heavy 4.96-15+deb12u2 (= )
dma:i386 0.13-1+b1 (= )
ssmtp 2.64-11 (= )
[...]

Which is... better than nothing, admittedly, but it still mystifies me
why this *one* feature is excluded from apt-patterns, when so many others
are included.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Understanding package dependencies Steve Keller <keller.steve@gmx.de> - 2023-10-07 14:10 +0200
  Re: Understanding package dependencies Michael Kjörling <2695bd53d63c@ewoof.net> - 2023-10-07 15:10 +0200
    Re: Understanding package dependencies Greg Wooledge <greg@wooledge.org> - 2023-10-07 15:30 +0200
      Re: Understanding package dependencies Steve Keller <keller.steve@gmx.de> - 2023-10-07 19:50 +0200
        Re: Understanding package dependencies Greg Wooledge <greg@wooledge.org> - 2023-10-07 20:20 +0200
        Re: Understanding package dependencies Sven Joachim <svenjoac@gmx.de> - 2023-10-07 20:30 +0200
          Re: Understanding package dependencies Greg Wooledge <greg@wooledge.org> - 2023-10-07 20:50 +0200
            Re: Understanding package dependencies Jörg-Volker Peetz <jvpeetz@web.de> - 2023-10-08 10:50 +0200
              Re: Understanding package dependencies Greg Wooledge <greg@wooledge.org> - 2023-10-08 14:40 +0200
            Re: Understanding package dependencies Max Nikulin <manikulin@gmail.com> - 2023-10-09 14:20 +0200

csiph-web