On one of our workstations I noticed that the older kernels are not being removed. Currently there are 8 of them, starting at 4.1.12, continuing to 4.1.31.
The other workstations keep at most 3 kernels.
How do I set a limit on the number of older kernels? How do I delete the old ones?
Sounds like the purge-kernels.service has not run.
Check /etc/zypp/zypp.conf for;
multiversion.kernels = latest,latest-1,running
Then manually run the service;
systemctl start purge-kernels.service
That should clean them up.
The conf file was correct. The ourge-kernel service had gotten disabled along the way some how. After enabling and starting it in System Services, the old kernels were removed.