On Thu 20 Jul 2023 at 14:31:43 (-0500), kjohn...@eclypse.org wrote:
> I would like to discover which currently installed packages in Bullseye (11) 
> will be obsolete (no longer available from a Debian repository) in Bookworm 
> (12) _before starting the upgrade process_.
> 
> It might be that there is a list of the more than 6,296 packages removed as 
> obsolete (source: Debian press release), and I could compare to that list for 
> matches.  Or, perhaps there is a list of the 64,419 packages in Bookworm and 
> I could find which ones are missing.
> 
> How can I get thoses lists?  Or is there another way to discover what I want 
> to know?

What I did was to run:

  $ dpkg-query -W -f '${Package}\n' | LC_ALL=C sort

to get a list of current packages. Then I downloaded:

  https://packages.debian.org/stable/allpackages?format=txt.gz

and ran it through:

  $ zcat allpackages\?format\=txt.gz | tail -n +7 | cut -d\  -f 1

for a list of bookworm packages. (Sort it as well if you're a worrier.)

Then I compared the new and old files with   diff -U9999   piped
into less, and searched with /^\+   Most of the 107 "missing" packages
were libs, which don't really interest me, then versioned kernels, gcc
and python.

Cheers,
David.

Reply via email to