Re: how to keep the most recent stable kernel?

Cyril Brulebois <[email protected]>
Newsgroups gmane.linux.debian.backports.general
Organization Debian
Message-ID <[email protected]>
Vagrant Cascadian <[email protected]> (2024-11-08):
> If you want to keep the both the latest kernel installed that
> linux-image-amd64/bookworm points to as well as the latest kernel that
> linux-image-amd64/bookworm-backports points to, I think you have to pick
> one of the linux-image-amd64 packages (e.g. either bookworm or
> bookworm-backports), and manually track the other (e.g. look up what
> package it *would* install, and then install that specific package). If
> you got really clever, you could maybe dynamically generate a local
> package with this dependency...
> 
> Or, do something like this regularly:
> 
>   apt update
>   apt install linux-image-amd64/bookworm-backports
>   apt install linux-image-amd64/bookworm-security
>   apt install linux-image-amd64/bookworm
> 
> It is not pretty, but this way you'll get the linux-image-X.Y.Z-adm64
> packages from bookworm-backports, and also from bookworm or
> bookworm-security. You might have to mark some of them as manually
> installed if you run "apt autoremove" or use "apt upgrade/install
> --autoremove", as often only two or three linux-image packages are
> typically kept around at a time, and usually only the most recent ones.

That's the kind of dance that made me twitch the last time it was
proposed, and made me submit that PoC to avoid it, even if I wouldn't
call it “really clever” as you did in your first paragraph:

  https://lists.debian.org/debian-backports/2021/06/msg00008.html

That diverges slightly from the initial question, as that would mean
keeping the “regular” metapackage installedn from either bookworm or
bookworm-security depending on where we're at (point releases vs.
security updates), and only working to keeping the latest backports
one installed. But I think that would satisfy the requirements.

> This is with the understanding that you wanted to keep both the current
> linux-image package from bookworm as well as the most current package
> from bookworm-backports.

Yes, and that seems to have been missed by early repliers.


Cheers,
-- 
Cyril Brulebois ([email protected])            <https://debamax.com/>
D-I release manager -- Release team member -- Freelance Consultant
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEtg6/KYRFPHDXTPR4/5FK8MKzVSAFAmcvPBQACgkQ/5FK8MKz
VSA9iA//Z8weOY2b1XXVwOWeXeCToerRx5sqnpMWWLfaE2PHy4aTqoSXzmCsH3Y/
lAlxaDhScCWAcGvzSup9gJLh2RzWMSkD15aUDMhiCS4ZArkbe+6+GqKWdIKqkmpc
O/SVIluIOMuLT1b4Xs/aexOhnmTfo5cIot51AAV7dkspIlh8dSMvvEvy/TdHWpB0
adbGuTY0KE314ZLdD3I3f9bfkwtJyWGZHfiQQZEZ+aFnwNZferGCL3dQR3PZF7ZW
z2gQCAG7KH1XkQe4SBabuGDvEiBqYKVH0s/Uvd63HS6Dg/YKHwovULGcWok8rrnz
kMSMhUZteoTmg4EKYt+TF5sK9M9r5NQ9YWS6qEzctotC8ncN8hQqjg2rWR9O9A3x
H2D4y6VBdAv/HYqtN1ojdM7/g9xwIZ4o1b7cYACaYag9XmhfXTaMuGlN6k9XmTaP
DPe5u9CEEgLnTWmjV7Wj6rCFjDAiFXtFnscVIQ5WUfNEIJwdfMEpMaAbjnNn+s9K
KDxID5zrcesgotA0ictGz/hw2Ahs4ZE7gGI7hNC+DmSkgYAY//hUlIvIf652F2VS
bEKqESZCal2Spoy2i84lm2pW8SNgWURzpvhQs89WhW4o3QS1n02PWwraF/AKUDhJ
BvpMcjZIqp+gCDFKpNH5XzIHlpIyBumvPkc5fB7lHecnAHh2vPQ=
=uo/s
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.