0

I inserted the CentOS 6 dvd in my machine, mounted it with following command

mount /dev/cdrom /DVD

Then this command to create repo file

vi /etc/yum.repos.d/DVD.repo

And inserted these lines in that file:

[DVD]
name=DVD Packages
baseurl=file:///DVD
gpgcheck=0

Can anyone tell me where did I go wrong?

Jeff Schaller
  • 66,199
  • 35
  • 114
  • 250
Sollosa
  • 1,887
  • 4
  • 19
  • 32
  • 1
    a [similar question](http://unix.stackexchange.com/questions/50465/how-to-create-local-repositories-in-rhel?rq=1) shows an "enabled=1" setting; does that help? – Jeff Schaller May 09 '16 at 16:09

1 Answers1

2

Edit your DVD.repo by adding enabled=1 like this:

[DVD]
name=DVD Packages
baseurl=file:///DVD
gpgcheck=0
enabled=1
GAD3R
  • 63,407
  • 31
  • 131
  • 192