Configuring the Local Yum Repository
Obtain the openEuler 24.03 LTS SP2 image file and configure it as the local image repository.
- 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
- Configure the local repository.
- 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
- Add the local repository configuration file openEuler-24.03-local.repo.
cd /etc/yum.repos.d vim openEuler-24.03-local.repo
- 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
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Back up the original local repository. The following uses openEuler.repo as an example.
- Initialize the local cache index.
yum clean all yum makecache
Parent topic: Common Operations