• Re: Automate removing obsolete kernels

    From Dan Purgert@dan@djph.net to alt.os.linux.mint on Tue Nov 25 12:31:54 2025
    From Newsgroup: alt.os.linux.mint

    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)?
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Alan K.@alan@invalid.com to alt.os.linux.mint on Tue Nov 25 08:02:32 2025
    From Newsgroup: alt.os.linux.mint

    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.
    --- Synchronet 3.21a-Linux NewsLink 1.2