Max Nikulin wrote on 04/10/2023 04:22:
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)?,'
<snip>I have to add that I'm working on a system from the testing archive with unstable and experimental archives also available.
Indeed the commands $ apt list '~i' | grep -v '/testing' and $ apt-show-versions | grep -v '/testing ' show the same packages, correctly, but $ apt list '~i!~Atesting' is missing some packages. Regards, Jörg.