centos7 离线yum配置

mount -t iso9660 -o loop /mnt/rhel_x86_64_7_5.iso /media/cdrom
vim /etc/yum.repos.d/rhel-media.repo

[rhel-media]
name=Red Hat Enterprise Linux 7.5
baseurl=file:///media/cdrom
enabled=1
gpgcheck=0

yum update

你可能感兴趣的:(centos7 离线yum配置)