Linux Mint Teases A Kernel Cleanup Trick That Fedora Figured Out Years Ago

The work-in-progress feature would clear out old, unused kernels automatically every week.
Warp Terminal

The Linux Mint project regularly puts out monthly news that gives us a look at what the developers are working on and where the overall project is headed towards.

Their July update has shown us how the distribution intends to handle kernels going forward, moving the entire job out of the Update Manager and into a different tool altogether.

A new feature?

Yes, and no. Kernel management isn't new, as in the past, Update Manager has let users view and remove individual kernels, but that functionality was removed.

The new implementation sits inside the System Administration tool instead, and it's built to behave the same way whether you're on Linux Mint or LMDE.

Instead of tracking individual versions one at a time, the new "Kernels" page inside System Administration groups multiple kernel versions according to series. Setting up the tool is a one-time choice of you telling it which kernel series matter to you and how deep a backlog to hold onto for each one.

Everything downstream runs on its own after that. The series you're following keeps updating through Update Manager the same way they always have, while anything past your set limit gets thrown out during a scheduled pass once a week.

Manual cleanups are possible too for times when you want to quickly free up some space to accommodate other content. Individual kernels can also be marked "Protected," which keeps them off the chopping block regardless of whether their series is tracked or how old they are.

Before you go looking for this on your own system, know that it isn't live yet.

Linux Mint project lead Clement Lefebvre has said that this is a preview of what's coming to the next Mint release.

Fedora has this already

terminal window on a fedora workstation system that shows how linux kernel-related packages are handled during a sudo dnf update command run

I understand that Linux Mint has had to reimplement their solution, but Fedora has had this problem solved for years. Its DNF package manager has done this by default the whole time.

The setting behind it is called installonly_limit, and it defaults to 3. Only the three most recent kernel builds stay installed at any given time. Whenever a new kernel comes in through a regular update, DNF removes whatever falls outside that limit as part of the same transaction.

There's no separate scheduled job behind it, unlike Mint's new weekly cleanup. It only runs when you actually update, so a kernel installed outside DNF's normal flow would just sit there untouched.

The two approaches end up solving a similar problem in different ways. Fedora's is a flat, always-on limit tied directly to the update transaction. Mint's new implementation, once it ships, would hand you more direct control instead.

Kernel management wasn't the only thing in Mint's July post. The team also shipped new HWE ISOs for Linux Mint 22.3, this time built on Linux 7.0, and Fcitx5 support lands in Cinnamon, running the same way across Wayland and X11.

For the full rundown, including the new environment variables page and the panel fixes, the original blog is a must-read.


Suggested Read πŸ“–: In related news, Linux Mint now considers Wayland stable enough for inclusion in its next release, due Christmas.

Linux Mint Now Considers Wayland Stable
Cinnamon will fully support both X11 and Wayland sessions starting with Mint’s next release, due Christmas.

Enjoyed this update? Support independent Linux news coverage

It's FOSS has been helping people use Linux for the past 14 years. Help us stay independent from big tech. Become a Plus member, enjoy ad-free reading and get 5 eBooks.

Plus yearly

Ad-free, FREE ebooks

Join yearly

Buy us a coffee

Any amount, no commitment

Support on Ko-fi
About the author
Sourav Rudra

Sourav Rudra

A nerd with a passion for open source software, custom PC builds, motorsports, and exploring the endless possibilities of this world.

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

itsfoss happy penguin

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.