I think package-cleanup is getting confused and thinks only 1 kernel is installed.
I had a single 3.x kernel installed. I then installed kernel 4.x using
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm yum --enablerepo=elrepo-kernel install kernel-ml
I now want to get rid of the 3.x kernel (space is tight on my /boot partition)
# package-cleanup --oldkernels --count=1 Loaded plugins: fastestmirror, langpacks No old kernels to remove
Is there any way I can make this work?