Create Local yum repository using Linux DVD

Lot of time we face the issue of dependency while installing the package from DVD.
Its bit difficult to solve the dependency, In these kind of scenario if we can create a yum repository using Linux Dvd, will solve lot of issues.
In this post, I am going to explain how to create a local yum repository

Note: Using RHEL 6.3
Steps: [commands are mentioned in Italic]

  1.  Mount the DVDRom.
    mount /dev/cdrom /root/cdrom
  2.  Go in the yum directory :
    cd /etc/yum.repos.d
  3.  open a new file local.repo
    vi local.repo
  4.  Make changes in the file
    [LocalRepo]
    name = local repository
    baseurl = file:///cdrom
    enable=1
    gpgcheck=0
  5.  Save the changes and Perform below command
    yum clean all
    yum install or yum update

One thought on “Create Local yum repository using Linux DVD

Comments are closed.