挂载光盘
#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*
2022-06-16 21:52:15
挂载光盘
#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*