Description of problem: In /etc/dnf/dnf.conf installonly_limit=2 is set. Nevertheless, 3 Kernel Versions are installed. Version-Release number of selected component (if applicable): How reproducible: Set installonly_limit=2 in /etc/dnf/dnf.conf sudo dnf upgrade Steps to Reproduce: 1. 2. 3. Actual results: 3 installed kernel versions Expected results: removing kernel-4.11.8-300 .... Additional info: dnf list | grep kernel -> kernel.x86_64 4.11.8-300.fc26 @anaconda kernel.x86_64 4.11.10-300.fc26 @updates kernel.x86_64 4.11.11-300.fc26 @updates
The oldest unbooted kernel will be removed only if in transaction will be the kernel. That means if there will be new kernel update available and you will update kernel, then instead of removal 1 kernel packages, two of them will be removed. The behavior was changed, because other users did not like, that if they install something, it also removes kernels over limit. Please if I did not understand well your problem, don't hesitate to reopen the bug report.