Skip to content
Search Oracle Linux

    Browse this documentation

    CentOS 7 → Oracle Linux: the script accepts only 7.9, same-major switching + the two-hop upgrade path (a script dissection)

    The Oracle-ization path for CentOS 7 (EOL) machines: what the official script really requires of the source version (source-level dissection), each step of the two-hop roadmap, and how the mechanism maps onto this site’s measured Alma→OL run.

    The source dissection: what the script actually accepts

    Section titled “The source dissection: what the script actually accepts”
    Terminal window
    grep -nE "centos" migrate-to-oracle-linux.sh
    407: centos-linux:7)
    408: if ! rpm -q centos-release --qf '%{VERSION} %{RELEASE}\n' | awk '$1 == "7" && $2 ~ /^9[.]/ …'
    412: centos-linux:8)

    Two hard facts (read from source):

    1. Only 7.9: the version check requires 7 + a 9.x release — 7.0~7.8 machines first yum update to 7.9 (the vault repositories, since CentOS 7 is EOL);
    2. No crossing majors: the script header states migration performs no major-version jumps — after the switch you have OL 7, not OL 9.
    CentOS 7.9 ──(migrate-to-ol)──▶ Oracle Linux 7 ──(Leapp)──▶ OL 8 ──(Leapp)──▶ OL 9
    StepToolKey points
    ① Switchmigrate-to-olthe same mechanism as the Alma record page (a same-major in-place distribution swap, booting into the OL 7 kernel)
    ② Up to 8Leapp (OL’s official channel)the preupgrade report → address the inhibitors → the upgrade reboot
    ③ Up to 9Leapp8→9 uses the same toolchain; 9→10 pending official maturity

    The prerequisite list: snapshot/backup first (the same clone-machine approach as this site’s migration record), at 7.9, rpm -qa | grep -i kernel for third-party kernels, and an inventory of non-official-repo packages. Before migrating, confirm that your dependency packages are available in the target distribution: the site’s migration mapping (data from pkgseek.com, covering 55 common server packages in Alma/Rocky official repos).

    This site has already measured the same mechanism completely on Alma 10.2 (E3): the inventory snapshot → OL release packages → official repos enabled → distribution packages purged → UEK → reboot. The CentOS 7 path’s script structure is identical; the differences are only the repository generation (ol7) and kernel versions — execution details can be verified step by step against the record page.

    Terminal window
    dnf install leapp-upgrade # OL's official leapp channel (configured within OL7)
    leapp preupgrade # precheck: address the inhibitor list item by item
    leapp upgrade # upgrade (multiple reboots are normal)

    The precheck’s inhibitor items (root partition size, deprecated drivers, old kernel residue) are the main workload of 7→8 — budgeting half a day to handle them is a normal expectation.

    • Verified (E1 source-dissection framing, not a migration run): the script-source dissection (the CentOS 7.9 check, the no-major-crossing clause) and the same-mechanism comparison (E1 container source reading);
    • Not measured: the full CentOS 7 source-machine flow (EOL environments are costly to obtain; the two Leapp hops to be recorded once a source machine is available);
    • Sources: migrate-to-ol, Oracle’s CentOS 7 → OL 8 all-in-one blog, vault.centos.org.