集群【运维】麒麟V10挂载本地yum源
一、下载yum源
https://distro-images.kylinos.cn:8802/web_pungi/download/share/vYTMm38Pkaq0KRGzg9pBsWf2c16FUwJ
二、创建挂载目录
mkdir /mnt/iso
三、挂载镜像
mount -o loop Kylin-Server-V10-SP3-General-Release-2303-X86_64.iso /mnt/iso
四、编辑yum配置文件
4.1创建本地 yum 源配置文件
vi /etc/yum.repos.d/local.repo
4.2添加配置内容
[local_server]
name=This is a local repo
baseurl=file:///mnt/iso
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-kylin
4.3清理并重建 yum 缓存
yum clean all
yum makecache