(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.
- Copy the OS image file openEuler-22.03-LTS-SP3-everything-aarch64-dvd.iso to the /root directory on each server.
- Mount the image file.
- 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.
- Enable the OS image to be automatically mounted upon system startup.
- Open the fstab file:
1vi /etc/fstab - 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
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the fstab file:
- Mount the openEuler .iso file in the /root directory to the /mnt/repo directory on the server.
- Add the local source file.
- Go to the /etc/yum.repos.d directory.
1cd /etc/yum.repos.d
You are advised to move the *.repo file in this directory to any other backup directory.
- Create a local.repo file.
1vi local.repo - 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
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Go to the /etc/yum.repos.d directory.
- Make the local source take effect.
1 2
yum clean all yum makecache
Parent topic: Configuring the Installation Environment