Rate This Document
Findability
Accuracy
Completeness
Readability

Configuring the Yum Source

Configure the local Yum source.

  1. Create a directory for mounting the Yum source.
    1
    mkdir /mnt/repo
    
  2. Mount the ISO file.
    1
    mount -o loop /home/iso/openEuler-20.03-LTS-SP1-everything-aarch64-dvd.iso /mnt/repo
    
  3. Back up the Yum source file.
    1
    2
    3
    cd /etc/yum.repos.d
    mkdir backup
    mv *.repo backup
    
  4. Modify the local.repo file.
    1. Open local.repo.
      1
      vim /etc/yum.repos.d/local.repo
      
    2. Press i to enter the insert mode and add the following content to the local.repo file:
      1
      2
      3
      4
      5
      6
      [local]
      name=local
      baseurl=file:///mnt/repo
      enable=1
      gpgcheck=0
      gpgkey=file:///mnt/repo/RPM-GPG-KEY-openEuler
      
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. Clear all the cached content.
    1
    yum clean all
    
  6. Build a cache.
    1
    yum makecache