UEK upgrades and multi-kernel coexistence management: the installonly retention policy, the version matrix, and rollback
What you will learn
Section titled “What you will learn”How kernels upgrade, how many old ones are kept, and how to roll back. What makes Oracle Linux special is that two kernel families receive updates in parallel — this page gives the measured coexistence-management method.
First, the state of the two update lines
Section titled “First, the state of the two update lines”dnf list --showduplicates kernel-uek | tail -3kernel-uek.x86_64 6.12.0-207.111.5.6.el10uek ol10_UEKR8kernel-uek.src 6.12.0-208.112.5.el10uek ol10_UEKR8kernel-uek.x86_64 6.12.0-208.112.5.el10uek ol10_UEKR8Meanwhile kernel- (RHCK) in BaseOS has reached 6.12.0-211.72.1 — the two families’ version numbers have no alignment: UEK follows Oracle’s own build rhythm (.208), RHCK follows RHEL’s (.211). Do not read “UEK’s number is smaller than RHCK’s” as UEK being older; check each repository’s latest independently.
The retention policy: installonly_limit=3
Section titled “The retention policy: installonly_limit=3”grep installonly /etc/dnf/dnf.conf# installonly_limit=3Meaning:
- Kernels are an installonly package group: an upgrade = installing a new version, and the running kernel is never overwritten;
- At most 3 versions coexist (UEK + RHCK + rescue combined); the oldest is purged automatically beyond that;
- To keep more for canary testing:
installonly_limit=5.
Upgrading
Section titled “Upgrading”dnf update -y 'kernel-uek*' # the UEK linednf update -y 'kernel' # the RHCK line (BaseOS)Measured: this machine was already at the UEK repository’s latest (208.112.5), so the transaction was a no-op — which is itself a verification: the upgrade command carries no risk of the current kernel being replaced. When a new version exists, the transaction installs the new kernel into /boot and generates a boot entry; the switch happens only at reboot.
Post-upgrade checks:
ls /boot/vmlinuz-*el10uek*grubby --default-kernel # the default entry = the newest kernel (set by dnf automatically)uname -r # the running kernel (still the old one until reboot)Rollback: two paths
Section titled “Rollback: two paths”# Path A: set the default entry on the command line + rebootgrubby --set-default=/boot/vmlinuz-6.12.0-207.111.5.5.el10uek.x86_64reboot
# Path B: at boot, select the old kernel manually in the GRUB menu (one-shot, leaves the default unchanged)Deleting a specific old kernel outright (freeing /boot space):
dnf remove -y kernel-uek-6.12.0-207.111.5.5.el10uekRelation to Ksplice
Section titled “Relation to Ksplice”With Ksplice (a Premier subscription), security patches apply hot and rebootless, while major kernel upgrades still follow the dnf flow above — hot patching solves “frequent reboots” and dnf solves “version evolution”; they complement each other. Ksplice in depth is on the Ksplice operations page.
Evidence and limits on this page
Section titled “Evidence and limits on this page”- Measured: the version matrix, installonly_limit=3, the safety of a no-op upgrade transaction, the two-lines-in-parallel state (E3);
- Not measured: the complete reboot chain of a real upgrade to a new version (this machine was already current; to be measured on the same VM once a new kernel ships);
- Sources: the UEK 8 Release Notes, OL10 kernel documentation,
dnf.conf(5).