Rate This Document
Findability
Accuracy
Completeness
Readability

Configuring the Local Yum Repository

Obtain the openEuler 24.03 LTS SP2 image file and configure it as the local image repository.

  1. Mount the openEuler-24.03-LTS-SP2-everything-aarch64-dvd.iso image.
    mkdir /mnt/ISO 
    mount -o loop /home/openEuler-24.03-LTS-SP2-everything-aarch64-dvd.iso /mnt/ISO
  2. Configure the local repository.
    1. Back up the original local repository. The following uses openEuler.repo as an example.

      If the openEuler.repo file does not exist in the OS, skip this step.

      mv /etc/yum.repos.d/openEuler.repo /etc/yum.repos.d/openEuler.repo.bak
    2. Add the local repository configuration file openEuler-24.03-local.repo.
      cd /etc/yum.repos.d
      vim openEuler-24.03-local.repo
    3. Press i to enter the insert mode and add the following content to the file:
      [everything]
      name=everything
      baseurl=file:///mnt/ISO
      enabled=1
      gpgcheck=0
      EOF
    4. Press Esc, type :wq!, and press Enter to save the file and exit.
  3. Initialize the local cache index.
    yum clean all
    yum makecache