Skip to content
Search Oracle Linux

    Browse this documentation

    UEK upgrades and multi-kernel coexistence management: the installonly retention policy, the version matrix, and rollback

    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.

    Terminal window
    dnf list --showduplicates kernel-uek | tail -3
    kernel-uek.x86_64 6.12.0-207.111.5.6.el10uek ol10_UEKR8
    kernel-uek.src 6.12.0-208.112.5.el10uek ol10_UEKR8
    kernel-uek.x86_64 6.12.0-208.112.5.el10uek ol10_UEKR8

    Meanwhile 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.

    Terminal window
    grep installonly /etc/dnf/dnf.conf
    # installonly_limit=3

    Meaning:

    • 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.
    Terminal window
    dnf update -y 'kernel-uek*' # the UEK line
    dnf 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:

    Terminal window
    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)
    Terminal window
    # Path A: set the default entry on the command line + reboot
    grubby --set-default=/boot/vmlinuz-6.12.0-207.111.5.5.el10uek.x86_64
    reboot
    # 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):

    Terminal window
    dnf remove -y kernel-uek-6.12.0-207.111.5.5.el10uek

    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.

    • 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).