Rate This Document
Findability
Accuracy
Completeness
Readability

(Optional) Configuring a Local Image Source

If you do not have access to the Internet, configure a local image source by referring to this section.

  1. Copy the OS image file openEuler-22.03-LTS-SP3-everything-aarch64-dvd.iso to the /root directory on each server.
  2. Mount the image file.
    1. Mount the openEuler .iso file in the /root directory to the /mnt/repo directory on the server.
      1
      2
      mkdir -p /mnt/repo
      mount /root/openEuler-22.03-LTS-SP3-everything-aarch64-dvd.iso /mnt/repo -o loop
      

      The operation of mounting the image file takes effect only once and becomes invalid after the OS is restarted.

    1. Enable the OS image to be automatically mounted upon system startup.
      1. Open the fstab file:
        1
        vi /etc/fstab
        
      2. Press i to enter the insert mode and add the following content to the end of the file:
        1
        /root/openEuler-22.03-LTS-SP3-everything-aarch64-dvd.iso /mnt/repo iso9660 loop 0 0
        
      3. Press Esc, type :wq!, and press Enter to save the file and exit.
  3. Add the local source file.
    1. Go to the /etc/yum.repos.d directory.
      1
      cd /etc/yum.repos.d
      

      You are advised to move the *.repo file in this directory to any other backup directory.

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