挂载光盘
#mout /dev/sr0 /mnt/cdrom
修改yum源
[root@localhost nginx-1.20.1]# cat /etc/yum.repos.d/rhel-source.repo
[rhel-source]
baseurl=file:///mnt/cdrom
enabled=1
gpgcheck=1
rpm --import /etc/pki/rpm-gpg/RPM*
原文:https://www.cnblogs.com/102x/p/14914950.html