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/CentOS-7-aarch64-Everything-1810.iso /mnt/repo
- Back up the Yum source file.
1 2 3
cd /etc/yum.repos.d mkdir backup mv *.repo backup
- Edit the local.repo file.
1vim /etc/yum.repos.d/local.repoAdd the following content to the 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-CentOS-7
- Clear all the cached content.
1yum clean all
- Build a cache.
1yum makecache
Parent topic: CentOS 7.6