On 2023-10-07 19:24 +0200, Steve Keller wrote: > Greg Wooledge <g...@wooledge.org> 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 without ntpsec. Is there > a way to search for "Provides" in packages? I.e. show me all packages > (installed or all) that provide some feature "foobar"?
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-agent)” will match | all the packages that provide “mail-transport-agent”. `---- In the current case, "aptitude search '~Plsb-base'" does the trick. Cheers, Sven 1. https://www.debian.org/doc/manuals/aptitude/ch02s04s05.en.html#searchProvides