On 30 Apr 2026 at 11:39, Joe Zeff wrote: Date sent: Thu, 30 Apr 2026 11:39:30 -0600 Subject: Re: dnf update on F43 says not enough space! To: [email protected] From: Joe Zeff <[email protected]> Send reply to: Community support for Fedora users <[email protected]>
> 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! Why not just change the line in at /etc/dnf/dnf.conf installonly_limit=3 to a lower value? If one doesn't have the space in /boot Changing this to 2 is a simple change? Might have to manually remove the oldest kernel or rescue kernels, But then the need for the 3rd kernel is gone. On my system I increase /boot to 1.5G so have enough space (at 62% used) 18225512 Apr 12 10:00 vmlinuz-6.19.12-200.fc43.x86_64 18225512 Apr 16 14:11 vmlinuz-0-rescue-5454d68084c145e496d5ce383b5147de 18229608 Apr 18 10:00 vmlinuz-6.19.13-200.fc43.x86_64 18233704 Apr 23 10:00 vmlinuz-6.19.14-200.fc43.x86_64 162260174 Apr 16 14:11 initramfs-6.19.12-200.fc43.x86_64.img 163508180 Apr 23 16:10 initramfs-6.19.13-200.fc43.x86_64.img 163517098 Apr 28 14:29 initramfs-6.19.14-200.fc43.x86_64.img 287788634 Apr 16 14:12 initramfs-0-rescue-5454d68084c145e496d5ce383b5147de.img Systems with nvidia cards see these larege size. Other with AMD or Intel video do not? +------------------------------------------------------------+ Michael D. Setzer II - Computer Science Instructor (Retired) mailto:[email protected] mailto:[email protected] mailto:[email protected] Guam - Where America's Day Begins G4L Disk Imaging Project maintainer http://sourceforge.net/projects/g4l/ +------------------------------------------------------------+ -- _______________________________________________ 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
