On Fri 16 Oct 2026 at 10:25:35 (+0200), Klaus Jantzen wrote:
> following the documentation for preparing a full-upgrade from Bookworm
> I used
>
> aptlist'?narrow(?installed, ?not(?origin(Debian)))' to find non-Debian
> packages. Nothing was found but I got a list with 1000 or so entries
> of the form ... apparmor/oldstable,now 3.0.8-3 amd64
> [installed,automatic] appstream/oldstable,now 0.16.1-2+b1 amd64
> [installed,automatic] apt-forktracer/oldstable,oldstable,now 0.9 all
> [installed] apt-listchanges/oldstable,oldstable,now 3.24 all
> [installed] apt-utils/oldstable,now 2.6.1 amd64 [installed] ... What
> should I do with that information? Delete something? How? Leave
> everything as is?
That command gives me just:
$ apt list '?narrow(?installed, ?not(?origin(Debian)))'
Listing... Done
inxi/now 3.3.38-1-1 all [installed,local]
xtoolwait/now 1.3-6.2 amd64 [installed,local]
$
whereas gives me a couple of thousand:
$ apt list '?narrow(?installed)'
Listing...
2to3/oldstable,now 3.11.2-1 all [installed]
acl/oldstable,now 2.3.1-3 amd64 [installed,automatic]
acpi-support-base/oldstable,now 0.143-5.1 all [installed,automatic]
[ … ]
$
My source file is:
$ cat /etc/apt/sources.list.d/debian.sources
Types: deb
URIs: http://deb.debian.org/debian
Suites: bookworm bookworm-updates
Components: main non-free non-free-firmware contrib
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Types: deb
URIs: http://security.debian.org/debian-security
Suites: bookworm-security
Components: main non-free non-free-firmware contrib
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
#
$
So I'm wondering what you have in yours, and whether having
oldstable in place of bookworm could lead to your results.
I agree with Anssi, but you might feel more confident were
you to pipe your output through something like:
| grep -v oldstable,now | grep -v oldstable-security,now
Thus, for example, on my system using the shorter command line:
$ apt list '?narrow(?installed)' | grep -v oldstable,now | grep -v oldstable-security,now
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Listing...
inxi/now 3.3.38-1-1 all [installed,local]
xtoolwait/now 1.3-6.2 amd64 [installed,local]
$
so the contrast is:
$ apt list '?narrow(?installed)' | grep -v oldstable,now | grep -v oldstable-security,now | wc -l
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
3
$ apt list '?narrow(?installed)' | wc -l
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
2187
$
Cheers,
David.