This is a very common issue which Linux users face when they try to install any package from a CD or DVD they always have dependency errors as the package manger only tries to install the package you selected and if there are dependency issue it will not look for the required file either on CD (even if they are presnet in the disc) so to resolve this issue there is a Hack we can make the disc which contains package looks like a online repositry to the package manager. In this case we are doing it with YUM.
First you need to reate a dvd.repo text file in /etc/yum.repos.d/ with the following content:
name=DVD for RHEL5( if Redhat Enterprise Linux 5 is Your Operating system if you are using any other OS please change the name)
(*) The mediaid= value comes from the .discinfo file located in the root of the DVD.
For example, to install the dovecot package using the new dvd.repo file, run yum with the –noplugins option so yum will not try to communicate with the online repositry server for dependencyinfact will look in the drive for other files.
# yum install dovecot –noplugins
Setting up Install Process
Parsing package install arguments
–> Running transaction check
—> Package dovecot.i386 0:1.0-1.2.rc15.el5 set to be updated
–> Finished Dependency Resolution
Package Arch Version Repository Size
dovecot i386 1.0-1.2.rc15.el5 dvd&nb!
sp; 1.5 M
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 1.5 M
Is this ok [y/N]:
If problems occur while trying this procedure, run yum clean all and try running yum install again.
name=DVD for RHEL5 – Cluster (type Fedora in place of RHEL5 if using Fedora same goes for if you are using any other flavour)
name=DVD for RHEL5 – ClusterStorage (type Fedora in place of RHEL5 if using Fedora same goes for if you are using any other flavour)
name=DVD for RHEL5 – VT (type Fedora in place of RHEL5 if using Fedora same goes for if you are using any other flavour)
Happy Hacking 🙂