Help Center/ Huawei Cloud EulerOS/ User Guide/ Obtaining the openEuler Extended Software Packages
Updated on 2024-09-14 GMT+08:00

Obtaining the openEuler Extended Software Packages

By default, HCE does not load the openEuler repository to avoid conflicts with HCE software packages.

HCE 2.0 is compatible only with openEuler 22.03 LTS. This section describes how you can obtain the extended software packages of openEuler 22.03 LTS.

How to Obtain

Application Scenario

How to Install RPM Packages

How to Back Up and Restore Repository Files

Run the wget Command to Download the RPM Packages

Installing a few RPM packages

Manually download and install the RPM packages.

N/A

Batch Downloading RPM Packages Using the Repository File

Installing multiple RPM packages

The RPM packages are automatically installed. You do not need to download them again.

Back up the repository files in the /etc/yum.repos.d directory first and then delete them. Restore the repository files after the RPM packages are installed.

Run the wget Command to Download the RPM Packages

You can run the wget command to download the RPM packages. hadoop-3.1-common-3.1.4-4.oe2203.noarch.rpm is used as an example.

  1. Sign in to the openEuler community.
  2. In the OS/everything directory, select the aarch64/ or x86_64/ System architecture directory and open the Packages/ directory.

  3. Search for the required RPM package, for example, hadoop-3.1-common-3.1.4-4.oe2203.noarch.rpm.

  4. Right-click the RPM package, copy the download link, and run the wget command to download the RPM package.

  5. If the following information is displayed, the package is downloaded.

  6. Run the rpm -ivh hadoop-3.1-common-3.1.4-4.oe2203.noarch.rpm command to install the RPM package. If the following information display is displayed, the package is installed.

    If other packages are required during the installation, repeat the above steps to install the dependent packages.

Batch Downloading RPM Packages Using the Repository File

Download the RPM packages under the openEuler-22.03-LTS/everything/x86_64 directory and run the yum commands to install them.

  1. Ensure that your VM can access https://repo.openeuler.org/openEuler-22.03-LTS/.
  2. Configure a yum repository.

    Go to the /etc/yum.repos.d directory, create an openEuler.repo file, and copy and paste the following content to this file.

    As the openEuler.repo file conflicts with the HCE repository file, back up the HCE repository file in the /etc/yum.repos.d directory and delete this file, and then create an openEuler.repo file.

    [openeuler]
    name=openeuler
    baseurl=https://repo.openeuler.org/openEuler-22.03-LTS/OS/x86_64/
    gpgcheck=1
    enabled=1
    priority=3
    gpgkey=https://repo.openeuler.org/openEuler-22.03-LTS/OS/x86_64/RPM-GPG-KEY-openEuler
    [everything]
    name=everything
    baseurl=https://repo.openeuler.org/openEuler-22.03-LTS/everything/x86_64
    gpgcheck=1
    enabled=1
    priority=3
    gpgkey=https://repo.openeuler.org/openEuler-22.03-LTS/everything/x86_64/RPM-GPG-KEY-openEuler
     
  3. Run the yum clean all command to delete the cache of the yum repository.
  4. Run yum makecache to connect to the newly configured repository. If the following information is displayed, the repository is connected.

  5. Install the RPM packages. hadoop-3.1-common is used as an example here.
    1. Run the yum list command to check whether the package exists.

    2. Run the yum -y install hadoop-3.1-common command to install the package. If the following information is displayed, the package is installed.

  6. Restore the repository file.

    After installing the required openEuler packages, delete the openEuler.repo file and restore the repository file deleted in step 2.