GalaxyData Community

Remove Old Kernels Fedora

How to Delete Old Unused Kernels

package-cleanup --oldkernels --count=1

error

package-cleanup has to be executed with one of the options: --dupes, --leaves, --orphans, --problems or --cleandupes

Please Use command Fedora

sudo dnf --setopt=protected_packages remove $(dnf repoquery --installonly --latest-limit=-1 -q)
dnf list kernel -q
Installed Packages
kernel.x86_64 5.15.14-100.fc34 @updates
Available Packages
kernel.x86_64 5.15.16-100.fc34 updates

 

Exit mobile version