Thanks for the help!

> --installed not filtering out libelogind, that's
> well it is what is. It actually filters installed dependencies, not
> installed packages, and hence libelogind0 is shown

> You're likely better of asking your questions using patterns, e.g.:
> $ apt list '?reverse-depends(?name(libdbus-1-3))'

It still shows uninstalled libelogind0 in case of --recourse for

apt-cache depends --recurse --no-recommends --no-suggests --no-conflicts
--no-breaks --no-replaces --no-enhances --installed
"?reverse-depends(?name(libpcap0.8))"

How can I avoid this in a such case?
I see no ability to rewrite this command using patterns.

On Wed, 14 Dec 2022 at 12:21, Debian Bug Tracking System <
ow...@bugs.debian.org> wrote:

> This is an automatic notification regarding your Bug report
> which was filed against the apt package:
>
> #1026086: Wrong output of apt-cache depends
>
> It has been closed by Julian Andres Klode <j...@debian.org>.
>
> Their explanation is attached below along with your original report.
> If this explanation is unsatisfactory and you have not received a
> better one in a separate message then please contact Julian Andres Klode <
> j...@debian.org> by
> replying to this email.
>
>
> --
> 1026086: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1026086
> Debian Bug Tracking System
> Contact ow...@bugs.debian.org with problems
>
>
>
> ---------- Forwarded message ----------
> From: Julian Andres Klode <j...@debian.org>
> To: 1026086-cl...@bugs.debian.org
> Cc:
> Bcc:
> Date: Wed, 14 Dec 2022 16:18:14 +0100
> Subject: Re: Bug#1026086: Wrong output of apt-cache depends
> On Wed, Dec 14, 2022 at 11:18:37AM -0300, Orangey wrote:
> > Package: apt
> > Version: 2.2.4
> >
> > Linux 5.19.0-0.deb11.2-amd64 #1 SMP PREEMPT_DYNAMIC Debian
> > 5.19.11-1~bpo11+1 (2022-10-03) x86_64 GNU/Linux
> > Description: Debian GNU/Linux 11 (bullseye)
> >
> > # apt show libdbus-1-3
> > Package: libdbus-1-3
> > Version: 1.12.20-2
> > Priority: optional
> > Section: libs
> > Source: dbus
> > Maintainer: Utopia Maintenance Team <
> > pkg-utopia-maintain...@lists.alioth.debian.org>
> > Installed-Size: 496 kB
> > *Depends: libc6 (>= 2.17), libsystemd0*
> > Recommends: dbus
> > Breaks: dbus (<< 1.9.16-1~)
> > Homepage: https://dbus.freedesktop.org/
> > Tag: role::shared-lib
> > Download-Size: 219 kB
> > APT-Manual-Installed: no
> > APT-Sources: http://mirror.insacom.cl/debian bullseye/main amd64
> Packages
> > Description: simple interprocess messaging system (library)
> >
> > # apt depends libdbus-1-3
> > libdbus-1-3
> > *  Depends: libc6 (>= 2.17)*
> >
> > *  Depends: libsystemd0    libelogind0*
> >   Breaks: dbus (<< 1.9.16-1~)
> >   Recommends: dbus
> >
> > *libelogind0 must not be in the command output.*
>
> No you're wrong. Please read the manual page:
>
>     depends shows a listing of each dependency a package has and all the
>     possible other packages that can fulfill that dependency
>
> and if you check libelogind you see:
>
>     Provides: libsystemd0 (= 246.9.1)
>
>
> WRT your followup on --installed not filtering out libelogind, that's
> well it is what is. It actually filters installed dependencies, not
> installed packages, and hence libelogind0 is shown.
>
> They're legacy commands provided for backward compatibility for users
> who know what they're doing. You're likely better of asking your
> questions using patterns, e.g.:
>
> $ apt list '?reverse-depends(?name(libdbus-1-3))'
> libc6/stable-updates,now 2.31-13+deb11u5 amd64 [installed,automatic]
> libsystemd0/stable,now 247.3-7+deb11u1 amd64 [installed,automatic]
>
> or using apt-cache show with the pattern if you need a machine-readable
> output. See apt-patterns(7) for more information.
>
> --
> debian developer - deb.li/jak | jak-linux.org - free software dev
> ubuntu core developer                              i speak de, en
>
>
> ---------- Forwarded message ----------
> From: Orangey <orangey....@gmail.com>
> To: sub...@bugs.debian.org
> Cc:
> Bcc:
> Date: Wed, 14 Dec 2022 11:18:37 -0300
> Subject: Wrong output of apt-cache depends
> Package: apt
> Version: 2.2.4
>
> Linux 5.19.0-0.deb11.2-amd64 #1 SMP PREEMPT_DYNAMIC Debian
> 5.19.11-1~bpo11+1 (2022-10-03) x86_64 GNU/Linux
> Description: Debian GNU/Linux 11 (bullseye)
>
> # apt show libdbus-1-3
> Package: libdbus-1-3
> Version: 1.12.20-2
> Priority: optional
> Section: libs
> Source: dbus
> Maintainer: Utopia Maintenance Team <
> pkg-utopia-maintain...@lists.alioth.debian.org>
> Installed-Size: 496 kB
> *Depends: libc6 (>= 2.17), libsystemd0*
> Recommends: dbus
> Breaks: dbus (<< 1.9.16-1~)
> Homepage: https://dbus.freedesktop.org/
> Tag: role::shared-lib
> Download-Size: 219 kB
> APT-Manual-Installed: no
> APT-Sources: http://mirror.insacom.cl/debian bullseye/main amd64 Packages
> Description: simple interprocess messaging system (library)
>
> # apt depends libdbus-1-3
> libdbus-1-3
> *  Depends: libc6 (>= 2.17)*
>
> *  Depends: libsystemd0    libelogind0*
>   Breaks: dbus (<< 1.9.16-1~)
>   Recommends: dbus
>
> *libelogind0 must not be in the command output.*
>

Reply via email to