Skip to content
Search openEuler

    Browse this documentation

    openEuler multi-version coexistence strategy — Java 1.8/11/17 side by side (measured), the single-gcc reality, and the BiSheng/oepkgs channels

    Evidence on this page is from the container track (E2) — openeuler/openeuler:latest (all online repos enabled, 2026-11-05): Java/gcc/python package-surface sampling and the installonly configuration. Raw log: evidence/logs/openeuler-parallel-versions.log.

    The repo listing as measured (coexisting in the same repo tree, 2026-11-05):

    java-1.8.0-openjdk.aarch64
    java-11-openjdk.aarch64
    java-17-openjdk.aarch64

    The three major versions are installable at the same time without overwriting each other — each version’s java/javac is wired through the alternatives system, and alternatives --config java switches the default. The safer application-side practice is to leave the global default alone and specify explicitly with JAVA_HOME (in a systemd unit: Environment=JAVA_HOME=/usr/lib/jvm/java-17-openjdk). For machines running mixed workloads (an old 1.8 app + new 17 services), this is the part where openEuler matches the EL family.

    gcc: the single-version reality — don’t go looking for gcc-12/gcc-13

    Section titled “gcc: the single-version reality — don’t go looking for gcc-12/gcc-13”

    Unlike Fedora’s parallel gcc packages (gcc-12/gcc-13 side by side), the OS main repo of openEuler 24.03 has only a single gcc 12.3.1 as measured (no versioned parallel packages). To get a newer toolchain, the channels are:

    1. The BiSheng compiler: EPOL’s BiSheng-Autotuner/BiSheng-opentuner (the tuners) and the bisheng program directory on oepkgs (the compiler itself is distributed along the program lines);
    2. gcc-for-openEuler: the dedicated GCC line in the oepkgs directory tree;
    3. Containerized toolchains (pin the version inside the build container — the most controllable).

    What this landscape means: openEuler does not satisfy “any-version gcc coexistence” through the system repos — for production build environments, containerize and lock the toolchain version directly, and treat the host gcc as a system-maintenance tool.

    python3-* packages span the everything and EPOL pools (sampling in testing: python3-APScheduler in everything, python3-Authlib in EPOL) — when hunting python3 ecosystem packages, check both pools; the interpreter itself is python3 (no sampling hits for python3.10/python3.11 parallel interpreter packages), and venv/containers are the mainstream path for application-level multi-version python.

    $ grep installonly /etc/dnf/dnf.conf
    installonly_limit=3

    The kernel is an installonly package and naturally coexists in multiple versions; 3 are kept by default — after upgrading to a new kernel, older kernels stay in the GRUB menu for rollback; machines relying on out-of-tree kernel modules should raise the limit (each extra kernel means one more module-rebuild obligation — see the kernel dual-track system).

    NeedRecommendation
    Multiple Java versionsinstall the parallel packages directly + alternatives/JAVA_HOME
    Pinned gcc/toolchain versionscontainerized builds; BiSheng/oepkgs as needed
    Multi-version python appsvenv/containers (the interpreter is not parallel)
    Kernel rollback windowthe installonly default mechanism; raise the limit on module-heavy machines
    • The end-to-end alternatives switch was not executed in this container (no multi-Java install on site; the switching surface will be covered on a VM);
    • No assertion is made about the state of module streams (modularity) on openEuler (the EL8 module system’s relationship to openEuler is checked in a separate volume);
    • Installing the BiSheng compiler itself and benchmark comparisons were not tested (see the BiSheng volume plan).