On Thu, 2026-04-30 at 11:39 -0600, Joe Zeff wrote:
> On 4/30/26 5:26 AM, Barry wrote:
> > Why not use dnf to remove the old kernels? e.g. dnf remove kernel-
> > core-<version>
> > Manually rm’ing can lead to issures later on.
> 
> Back in 2011, somebody wrote a Python script, kernel-prune.py, to get
> rid of excess kernels and the support files that go with them because
> some users were having space issues.  I'm attaching it to this email
> so 
> that anybody who feels the need can use it to clean up.  If memory 
> serves, it defaults to leaving you with three, but you can specify on
> the command line how many you want.  Just be sure to back up first in
> case things have changed to the point that it doesn't work properly. 
> Share and enjoy!

Surely 'dnf erase <kernel-version>' does all that?

poc
-- 
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to