Rate This Document
Findability
Accuracy
Completeness
Readability

Configuring a Local Source

Configure the Yum source properly to install the required software and dependencies.

  1. Mount the system image. This document uses openEuler as an example.
    1
    mount YOUR_OS.iso /mnt -o loop
    

    YOUR_OS.iso indicates the image file of the OS in your environment.

  2. Configure the local Yum source.
    1. Create and open the /etc/yum.repos.d/openEuler.repo file.
      1
      vim /etc/yum.repos.d/openEuler.repo
      

      The openEuler.repo file needs to be manually created. You are advised to back up original .repo files.

    2. Press i to enter the insert mode and add the following content to the openEuler.repo file:
      [openEuler]
      name=openEuler
      baseurl=file:///mnt
      enabled=1
      gpgcheck=0
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  3. Make the Yum source configuration take effect.
    1
    2
    yum clean all
    yum makecache