Upgrade and Downgrade Guide ​

This document describes how to upgrade openEuler 22.03 LTS to openEuler 22.03 LTS SP1. The operations for other versions are similar.

1. OS Installation ​

Obtain an openEuler 22.03 LTS image and install the OS by referring to the installation guide.

View the versions of openEuler and the kernel in the current environment.

LTS_version

2. Upgrade Execution ​

2.1 Adding the openEuler 22.03 LTS SP1 Repositories (openEuler-22.03-LTS-SP1.repo) ​

bash
vi /etc/yum.repos.d/openEuler-22.03-LTS-SP1.repo

Add information about the following openEuler 22.03 LTS SP1 repositories and save and exit.

text
SP1_OS, SP1_everything, SP1_EPOL, SP1_debuginfo, SP1_source, SP1_update

SP1_repo

2.2 Performing the Upgrade ​

bash
dnf update | tee update_log

Note:

  1. If an error is reported during the upgrade, run dnf update --skip-broken -x conflict_pkg1 |tee update_log to avoid the problem. If multiple packages conflict, use the -x conflict_pkg1 -x conflict_pkg2 -x conflict_pkg3 options to skip the packages and analyze, validate, and update the conflicted packages after the upgrade.
  2. Options:
    --allowerasing: Allow erasing of installed packages to resolve dependencies.
    --skip-broken: Resolve dependency problems by skipping packages.
    -x: Used with --skip-broken to specify the packages to be skipped.

2.3 Rebooting the OS ​

bash
reboot

3. Upgrade Verification ​

View the versions of openEuler and the kernel in the current environment.

SP1_version

4. Downgrade Execution ​

4.1 Performing the Downgrade ​

bash
dnf downgrade | tee downgrade_log

4.2 Rebooting the OS ​

bash
reboot

5. Downgrade Verification ​

View the versions of openEuler and the kernel in the current environment.

LTS_version