• Re: Automate removing obsolete kernels

    From Dan Purgert@3:633/10 to All on Tuesday, November 25, 2025 12:31:54
    On 2025-11-24, Alan K. wrote:
    I've gone into update manager and check the item in automation to remove old kernels every
    week. I currently have 3, the oldest is Sept something.

    I don't seem to get these old one removed. Oh yes, I can do it through apt autoremove,
    but I kinda thought this would work.

    What am I doing wrong?


    I don't recall the update manager working on "time", but rather a count
    of how many kernels to retain (e.g. "keep 2 old kernels"). That being
    said, 'autoremove' should only be removing packages that were installed
    as dependencies of something that has since been removed. The kernel
    images "shouldn't" fit this definition (although, maybe there's a
    metapackage that's driving it).


    Have you happened to jump kernel versions (e.g. default LTS to HWE, or similar)?

    --- PyGate Linux v1.5.1
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Alan K.@3:633/10 to All on Tuesday, November 25, 2025 08:02:32
    On 11/25/25 7:31 AM, Dan Purgert wrote:
    On 2025-11-24, Alan K. wrote:
    I've gone into update manager and check the item in automation to remove old kernels every
    week. I currently have 3, the oldest is Sept something.

    I don't seem to get these old one removed. Oh yes, I can do it through apt autoremove,
    but I kinda thought this would work.

    What am I doing wrong?


    I don't recall the update manager working on "time", but rather a count
    of how many kernels to retain (e.g. "keep 2 old kernels"). That being
    said, 'autoremove' should only be removing packages that were installed
    as dependencies of something that has since been removed. The kernel
    images "shouldn't" fit this definition (although, maybe there's a
    metapackage that's driving it).


    Have you happened to jump kernel versions (e.g. default LTS to HWE, or similar)?
    Nope. I currently have
    Oct 20 18:56 /boot/initrd.img-6.8.0-86-generic
    Nov 20 11:15 /boot/initrd.img-6.8.0-87-generic
    Nov 20 11:15 /boot/initrd.img-6.8.0-88-generic

    Maybe it's 1 active and 2 old, as you said. I'll see what happens on the next update.

    --
    Linux Mint 22.2, Mozilla Thunderbird 140.5.0esr, Mozilla Firefox 145.0.1
    Alan K.

    --- PyGate Linux v1.5.1
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)