挂载光盘
#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-10-31 08:23:12
挂载光盘
#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*