[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to keep the most recent stable kernel?



Vagrant Cascadian <vagrant@debian.org> (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 (kibi@debian.org)            <https://debamax.com/>
D-I release manager -- Release team member -- Freelance Consultant

Attachment: signature.asc
Description: PGP signature


Reply to: