- 挂载iso文件到mnt
mount /data/download/openEuler-22.03-LTS-x86_64-dvd.iso /mnt/
- 修改/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