On this document I will go through a series of steps to add a local DVD to a RPM based Linux server and then use it as a Yum repository to install software.
Step 1 - Insert the Linux DVD containing the required software and then issue the command scsi-rescan
NOTE: For help on how to add a Linux DVD to a Virtual Box VM check this other blog.
Step 2 -Create the /media/dvd directory if not already present.
Step 3 - Mount the DVD to the /media/dvd directory# mount /dev/cdrom /media/dvd
Step 4 - Add and edit the /etc/yum.repos.d/rhel-dvd.repo file to make it have this content:[dvd]
name=Red Hat Enterprise Linux Installation DVD
baseurl=file:///media/dvd
Step 5 - Edit the /etc/yum.conf file to set the gpgckeck parameter to 0(zero) to disable checking signatures of packages.
Your system should be ready to install software from the DVD.
Step 6 - Use yum as follows to use your DVD repository:# yum install/search --enablerepo=dvd –nogpgcheck [software]
Disclaimer - Views expressed in this blog are author's own and do not necessarily represents the policies of aclnz.com