Rate This Document
Findability
Accuracy
Completeness
Readability

Mounting the OS Image Source

  1. Download openEuler-22.03-LTS-SP3-everything-aarch64-dvd.iso and upload it to the /home directory on the server.
    If the server is connected to the Internet, you can also run the wget command to download the image.
    1
    2
    cd /home
    wget https://repo.openeuler.org/openEuler-22.03-LTS-SP3/ISO/aarch64/openEuler-22.03-LTS-SP3-everything-aarch64-dvd.iso --no-check-certificate
    
  2. Mount the image.
    1
    mount /home/openEuler-22.03-LTS-SP3-everything-aarch64-dvd.iso /media -o loop
    
  3. Back up the .repo files and clear the /etc/yum.repos.d/ directory.
    1
    2
    cp -r /etc/yum.repos.d /etc/yum.repos.d-bak 
    rm /etc/yum.repos.d/*
    

    Ensure that all .repo files have been backed up. Enter y on the rm deletion page to delete the files.

  4. Configure the local yum source.
    1. Open the /etc/yum.repos.d/Local.repo file.
    2. Press i to enter the insert mode and add the following content to the file:
      1
      2
      3
      4
      5
      [Local]
      name=Local
      baseurl=file:///media/
      enabled=1
      gpgcheck=0
      
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. Make the yum source configuration take effect.
    1
    yum clean all && yum makecache