8 different Fedora versions in boot menu

Ok so i read online that fedora only keeps the latest 2 or 3 versions? but i can see 8 different versions in my boot menu? Why is that? And what is the 0-rescue version and the Fedora with Xen versions? I am pretty new to fedora and linux.

Also you can define the number and increase/decrease the number of kernel in your system, in the following way:

On Fedora this file is located in /etc/dnf/dnf.conf


No idea where you got those Xen kernels from. Certainly not a Fedora default kernel.

1 Like

You apparently installed the xen kernel in f39. I note however that they did not appear in f40.
You have one xen kernel for each f39 fedora kernel installed. They probably should disappear as you update and new kernels are installed in f40 so the older f39 kernels are removed.

Like @augenauf said, you can check the dnf.conf file to see what’s there, you can do this running this on console to open that file witn nano sudo nano /etc/dnf/dnf.conf and look for the line that says installonly_limit=
Just edit with caution to not set a number too low so if you have troubles with a kernel update you can’t revert to the last good kernel anymore.
After editing the file, press ctrl+o (save) enter (confirm) and ctrl+x (exit) and then run sudo dnf upgrade --refresh (for the dnf to remove the old kernel).
About the rescue kernel question, it is, in short, a kernel without external modules. This entry is created at first install, by anaconda usually, and can be leaved alone. But if you want to regenerate it with a new kernel version just to be sure you can boot your machine if something goes wrong then follow this doc here.
About the xen kernel, I found only this old 2013 wiki mention here, so I think you have follow some old tutorial when you was at F39… maybe with the comand history| grep xen you can what you’re doing when you installed it.

Not entirely correct. It may need kernel modules from /usr/lib/modules, and after a few kernel updates they will be gone. Do try to boot the emergency entry before you rely on it.

1 Like


I routinely remove that entry in /boot every few months so the next kernel update will recreate it for me with what is current and working (at least once every distro version release). This keeps it relatively current and I know it will work.

There have been some who had the rescue entry sitting there for several release versions so the rescue version was way out of date and failed to function when needed.