Configuring a Local Source
Configure the Yum source properly to install the required software and dependencies.
- Mount the system image. This document uses openEuler as an example.
1mount YOUR_OS.iso /mnt -o loop
YOUR_OS.iso indicates the image file of the OS in your environment.
- Configure the local Yum source.
- Create and open the /etc/yum.repos.d/openEuler.repo file.
1vim /etc/yum.repos.d/openEuler.repo
The openEuler.repo file needs to be manually created. You are advised to back up original .repo files.
- Press i to enter the insert mode and add the following content to the openEuler.repo file:
[openEuler] name=openEuler baseurl=file:///mnt enabled=1 gpgcheck=0
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Create and open the /etc/yum.repos.d/openEuler.repo file.
- Make the Yum source configuration take effect.
1 2
yum clean all yum makecache
Parent topic: Configuring the Compilation Environment