Thank you for your reply.
I have read that page, but still not very sure which of “3,6.5.9-1.3” or “6.5.9-1-default” is the correct way to specify kernel version.
I guess it should be the way of “3,6.5.9-1.3”.
But I am not very sure, that’s why I am asking here.
It is written in both articles and also in /etc/zypp/zypp.conf
## Comma separated list of kernel packages to keep installed in parallel, if the
## above multiversion variable is set. Packages can be specified as
## 2.6.32.12-0.7 - Exact version to keep
## latest - Keep kernel with the highest version number
## latest-N - Keep kernel with the Nth highest version number
## running - Keep the running kernel
## oldest - Keep kernel with the lowest version number (the GA kernel)
## oldest+N - Keep kernel with the Nth lowest version number
##
## Default: Do not delete any kernels if multiversion = provides:multiversion(kernel) is set
Rather than config file tinkering, you may use zypper locking instead, as with any installed package:
sudo zypper al kernel-default-6.5.9*
You can be more explict with the version if you wish, but the wildcard has a special meaning to zypper, which is when you wish to override a lock, rather than abandoning a current transaction to remove it, followed by repeating the original transaction, zypper will simply ignore it, while reporting it will “remove” it.
Yes, it does. The final .1 in package releases is rebuild counter which can be omitted (zypper will compare first the full version+release and then the version+release with stripped off rebuild counter). This is probably more relevant for Tumbleweed where packages may be rebuilt without any functional changes and so without increasing version or release.
I had the same confusion with the version numbers so my solution was to use ‘oldest’ in /etc/zypp/zypp.conf
I added it when the new kernel (6.6) was installed so it kept 6.5.9
When the 6.7 comes I’ll comment out ‘oldest’, run zypper purge-kernels and uncomment it again.