Configuring the Yum Source
Configure the local Yum source.
- Create a directory for mounting the Yum source.
1mkdir /mnt/repo - Mount the ISO file.
1mount -o loop /home/iso/openEuler-20.03-LTS-SP1-everything-aarch64-dvd.iso /mnt/repo
- Back up the Yum source file.
1 2 3
cd /etc/yum.repos.d mkdir backup mv *.repo backup
- Modify the local.repo file.
- Open local.repo.
1vim /etc/yum.repos.d/local.repo - 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
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open local.repo.
- Clear all the cached content.
1yum clean all
- Build a cache.
1yum makecache
Parent topic: Configuring the Installation Environment