Skip to content
Search openEuler

    Browse this documentation

    openEuler's official cross-LTS upgrade story — the two paths for 22.03→24.03: openeuler-upgrader and repo replacement

    This page’s evidence is the docs/official-repo line — the openEuler official upgrade/downgrade guide (the 24.03 docs tree, which uses the 22.03 LTS→22.03-SP1 paradigm and states it generalizes to other versions), the openeuler-upgrader official repo (Gitee, checked 2026-11-05), and community write-ups plus the forum’s caution line. A cross-LTS upgrade was not run on a real machine (the lab machine starts at 24.03; see the end of the page).

    The official repo (gitee.com/openeuler/openeuler-upgrader) provides scripted upgrades for 22.03 LTS → 24.03 LTS: it wraps the many steps of a cross-LTS move (repo switching, package transactions, kernel switching, final cleanup) into a repeatable script. The engineering line: run as root, reserve a ≥5GB-class disk, keep console access reachable during the upgrade. Why a tool instead of hand-rolled repo replacement: a cross-LTS move involves a large volume of transactions, and the script’s step decomposition and failure-point handling have been polished by the official maintainers.

    Official path two: repo replacement (the guide paradigm)

    Section titled “Official path two: repo replacement (the guide paradigm)”

    The official upgrade/downgrade guide demonstrates with the 22.03 LTS→SP1 paradigm (other versions generalize the same way):

    Terminal window
    cp /etc/yum.repos.d/openEuler.repo /etc/yum.repos.d/openEuler.repo.bak
    sed -i 's/22.03/24.03/g' /etc/yum.repos.d/openEuler.repo # replace the version string
    dnf clean all && dnf makecache
    dnf -y update # or in steps: the release package first, then everything
    reboot (new kernel)

    Key detail: forum experience stresses using the fixed repo sources from the forum summary rather than metalink variants (this site actually hit one unreachable source while setting up its lab source — a DNS-resolution-failure shape, openeuler-p2-first-hour-vm.log, resolved by pinning a mirror; metalink intermittent timeouts are a commonly reported community shape, see the troubleshooting page); backing up the repo before replacement is the fallback material.

    The cautious line (community/forum consensus)

    Section titled “The cautious line (community/forum consensus)”

    For cross-major upgrades, validate in a simulated environment before production — the standard advice on the official forum for 22.03 SP3→24.03-class questions. The risk surface of a cross-LTS move: the kernel’s major-version jump (5.10→6.6, all out-of-tree modules rebuilt), large ABI changes across packages, and configuration-file merge conflicts. The decision frame: VMs and cloud hosts with snapshots or reinstall capability can take the cross-LTS path; critical workloads on physical machines prefer “reinstall 24.03 + move the assets over” (the same skeleton as the Rocky/Alma migration — a same-distro openEuler reinstall goes even smoother).

    • SP upgrades (24.03→24.03-SPx, within one LTS line): routine; existing SP upgrade page on this site;
    • Cross-LTS (22.03→24.03): this page — a completely different order of change; always plan the two separately.
    • A cross-LTS upgrade was not run on a real machine (the openeuler-upgrader full flow, the repo-replacement method’s dnf transactions, the post-upgrade kernel switch — the lab machine starts at 24.03; queued for the live-test batch once a 22.03 source machine is ready);
    • The downgrade path (the guide includes a downgrade paradigm) neither measured nor expanded (rarely used in production);
    • Per-item provenance checking of community tutorials not done (cited as community lines).