Help Center > > FAQs> Image Source Management> How Can I Use a EulerOS Image Source (x86_64 or Arm) Provided by HUAWEI CLOUD?

How Can I Use a EulerOS Image Source (x86_64 or Arm) Provided by HUAWEI CLOUD?

Updated at: May 06, 2020 GMT+08:00


When updating the OS or software of an ECS, you can access the ECS to the Internet and use an external EulerOS image source. However, if your ECS cannot access the Internet, or the external EulerOS image source cannot provide services stably, you can use the EulerOS image source provided by HUAWEI CLOUD.


  • The operations described in this section apply to ECSs deployed on x86_64 or Arm (Kunpeng) servers.


  1. Log in to the ECS.
  2. Run the following commands to back up the Euler repo file:

    mkdir -p /etc/yum.repos.d/repo_bak/

    mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/repo_bak/

  3. Select a suitable curl command to download the Euler-Base.repo file of the desired version and save the file into /etc/yum.repos.d/.
    • x86_64 (only EulerOS 2.2 is supported)

      curl -o /etc/yum.repos.d/EulerOS-base.repo

      For example, if EulerOS 2.2 is used, change x in EulerOS_2_x_base.repo to 2 in the following command:

      curl -o /etc/yum.repos.d/EulerOS-base.repo

    • Arm (only EulerOS 2.8 is supported)

      curl -o /etc/yum.repos.d/EulerOS-base.repo

  4. Run the following command to generate a cache:

    yum makecache

    After the command is executed, if the system displays the message "Another app is currently holding the yum lock", run the rm -rf /var/run/ command to delete the file. Then, run the yum makecache command again to generate the cache.

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?

Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel