Centos 6.5 – Add a local repo in 5 small steps

You can set yum to draw RPM packages for install directly from your DVD drive by executing the following steps.

  • 1) Enable yum to read from your local DVD.

                              vi /etc/yum.repos.d/CentOS-Media.repo

  • 2) Set the parameter enabled to 1
  • 3) Create a directory to use as a mount point for your DVD.

                             mkdir /media/cdrom

  • 4) Mount your DVD drive.

                             mount -t iso9660 /dev/cdrom /media/cdrom

  • 5) Install software

                            yum –enablerepo=c6-media install httpd



Share Button