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 |
---|---|---|---|
Installing a few RPM packages |
Manually download and install the RPM packages. |
N/A |
|
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.
- Sign in to the openEuler community.
- In the OS/everything directory, select the aarch64/ or x86_64/ System architecture directory and open the Packages/ directory.
- Search for the required RPM package, for example, hadoop-3.1-common-3.1.4-4.oe2203.noarch.rpm.
- Right-click the RPM package, copy the download link, and run the wget command to download the RPM package.
- If the following information is displayed, the package is downloaded.
- 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.
- Ensure that your VM can access https://repo.openeuler.org/openEuler-22.03-LTS/.
- 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
- Run the yum clean all command to delete the cache of the yum repository.
- Run yum makecache to connect to the newly configured repository. If the following information is displayed, the repository is connected.
- Install the RPM packages. hadoop-3.1-common is used as an example here.
- Run the yum list command to check whether the package exists.
- Run the yum -y install hadoop-3.1-common command to install the package. If the following information is displayed, the package is installed.
- Run the yum list command to check whether the package exists.
- Restore the repository file.
After installing the required openEuler packages, delete the openEuler.repo file and restore the repository file deleted in step 2.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot