Re: Understanding package dependencies

2023-10-09 Thread Max Nikulin
On 08/10/2023 01:45, Greg Wooledge wrote: On Sat, Oct 07, 2023 at 08:27:11PM +0200, Sven Joachim wrote: In the current case, "aptitude search '~Plsb-base'" does the trick. Why on EARTH was this not ported to apt-patterns(7)? It is one of two features I miss in "apt list". Another one is --sh

Re: Understanding package dependencies

2023-10-08 Thread Greg Wooledge
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) > > ^

Re: Understanding package dependencies

2023-10-08 Thread Jörg-Volker Peetz
Greg Wooledge wrote on 07/10/2023 20:45: On Sat, Oct 07, 2023 at 08:27:11PM +0200, Sven Joachim wrote: Yes, aptitude can do that. Quoting the manual[1]: , | ?provides(pattern), ~Ppattern | | Matches package versions which provide a package that matches the | pattern. For instance,

Re: Understanding package dependencies

2023-10-07 Thread Greg Wooledge
On Sat, Oct 07, 2023 at 08:27:11PM +0200, Sven Joachim wrote: > Yes, aptitude can do that. Quoting the manual[1]: > > , > | ?provides(pattern), ~Ppattern > | > | Matches package versions which provide a package that matches the > | pattern. For instance, “?provides(mail-transport-ag

Re: Understanding package dependencies

2023-10-07 Thread Sven Joachim
On 2023-10-07 19:24 +0200, Steve Keller wrote: > Greg Wooledge writes: > >> Package: sysvinit-utils >> [...] >> Provides: lsb-base (= 11.1.0) >> >> When you remove the physical lsb-base package, the virtual package >> provided by sysvinit-utils remains, to satisfy the dependencies of >> ntpsec, r

Re: Understanding package dependencies

2023-10-07 Thread Greg Wooledge
On Sat, Oct 07, 2023 at 07:24:24PM +0200, Steve Keller wrote: > Greg Wooledge writes: > > > Package: sysvinit-utils > > [...] > > Provides: lsb-base (= 11.1.0) > > > > When you remove the physical lsb-base package, the virtual package > > provided by sysvinit-utils remains, to satisfy the depende

Re: Understanding package dependencies

2023-10-07 Thread Steve Keller
Greg Wooledge writes: > Package: sysvinit-utils > [...] > Provides: lsb-base (= 11.1.0) > > When you remove the physical lsb-base package, the virtual package > provided by sysvinit-utils remains, to satisfy the dependencies of > ntpsec, rsync, etc. OK, that explains, why lsb-base can be removed

Re: Understanding package dependencies

2023-10-07 Thread Greg Wooledge
On Sat, Oct 07, 2023 at 01:04:56PM +, Michael Kjörling wrote: > On 7 Oct 2023 13:47 +0200, from keller.st...@gmx.de (Steve Keller): > > # aptitude purge lsb-base > > The following packages will be REMOVED: > > lsb-base{p} > > 0 packages upgraded, 0 newly installed, 1 to remove

Re: Understanding package dependencies

2023-10-07 Thread Michael Kjörling
On 7 Oct 2023 13:47 +0200, from keller.st...@gmx.de (Steve Keller): > But how can this then be explained? > > # aptitude why lsb-base > i ntpsec Depends lsb-base > # aptitude show ntpsec | grep ^Depends > Depends: adduser, lsb-base, netbase, python3, python3-ntp (= > 1.2.2+dfsg1

Understanding package dependencies

2023-10-07 Thread Steve Keller
I've always thought, that a package's dependencies must be full-filled to install that package and that apt-get automatically manages these dependencies. And also, that if I remove a package, that all other packages are removed, that depend on it. Like this: # aptitude purge bind9-libs T