On 04/10/2023 01:29, Jörg-Volker Peetz wrote:
Max Nikulin wrote on 03/10/2023 12:11:
apt list '?narrow(~i, !~Astable|~Astable-backports|!~O^Debian$|~o|~c)'

In my experience the only tool that gives correct answers, is apt-show-versions in the package of the same name:

$ apt-show-versions | grep -v '/stable '

Thanks.

Do you have an example of a case when apt-show-versions works better when the following command?

  apt list '~i' | grep -Ev '[/,]stable(-updates|-security)?,'

OK, it issues a warning

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

In my case apt list + grep gives the same packages as "apt list" with the pattern I posted.


Reply via email to