openEuler加载本地yum源

  1. 挂载iso文件到mnt
mount /data/download/openEuler-22.03-LTS-x86_64-dvd.iso /mnt/
  1. 修改/etc/yum.repos.d/openEuler.repo
[Local]
name=local
baseurl=file:///mnt
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-openEuler

3.更新yum源信息

yum clean all
yum makecache

你可能感兴趣的:(linux,openEuler,yum)