Yum installation problem from DVD !

Friends ,

I want to install package using yum from DVD in RHEL 5 . Hence I just follow the below rules :

1)
[root@server ~]# mount /dev/hdc /cdrom/
mount: block device /dev/hdc is write-protected, mounting read-only

2)
Edit the yum rhel-debuginfo.repo file like following way :

[root@server yum.repos.d]# pwd
/etc/yum.repos.d
[root@server yum.repos.d]# cat rhel-debuginfo.repo
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///cdrom/Server/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[root@server yum.repos.d]#

Now When I try install a package (like zsh or others) then it shows the following error :

[root@server yum.repos.d]# ls
rhel-debuginfo.repo
[root@server yum.repos.d]# yum install zsh*
Loading "rhnplugin" plugin
Loading "installonlyn" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for zsh to pack into transaction set.
media://1170972069.396645%233/zsh-4.2.6-1.i386.rpm: [Errno 4] IOError: <urlopen error unknown url type: media>
Trying other mirror.
Error: failed to retrieve zsh-4.2.6-1.i386.rpm from rhel-debuginfo
error was [Errno 4] IOError: <urlopen error unknown url type: media>
[root@server yum.repos.d]#

[root@server yum.repos.d]# yum install dovecot*
Loading "rhnplugin" plugin
Loading "installonlyn" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for dovecot to pack into transaction set.
media://1170972069.396645%232/dovecot-1.0-1.2.rc15.el5.i386.rpm: [Errno 4] IOError: <urlopen error unknown url type: media>
Trying other mirror.
Error: failed to retrieve dovecot-1.0-1.2.rc15.el5.i386.rpm from rhel-debuginfo
error was [Errno 4] IOError: <urlopen error unknown url type: media>
[root@server yum.repos.d]#

Would anybody plz help me to remove this problem ?

Thx in advance ... ...

Hi,
Try this command
# cat > /etc/yum.repos.d/file.repo
[RHEL 5 Repository]
baseurl=file:///cdrom
enabled=1
EOF
# yum clean all
# yum install ksh*

Good luck.

Thx Ismail

According to ur advice , I edit the rhel file below way :

[root@lpt yum.repos.d]# cat rhel-debuginfo.repo
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///cdrom/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[root@lpt yum.repos.d]#

Here , I mount my DVD in '/cdrom' and under '/cdrom/Server' contains all rpm . But still I got the below error :

[root@lpt yum.repos.d]# yum install ksh*
Loading "rhnplugin" plugin
Loading "installonlyn" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
rhel-debuginfo 100% |=========================| 1.3 kB 00:00
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for ksh to pack into transaction set.
media://1170972069.396645%231/ksh-20060214-1.4.i386.rpm: [Errno 4] IOError: <urlopen error unknown url type: media>
Trying other mirror.
Error: failed to retrieve ksh-20060214-1.4.i386.rpm from rhel-debuginfo
error was [Errno 4] IOError: <urlopen error unknown url type: media>
[root@lpt yum.repos.d]#
[root@lpt yum.repos.d]#
[root@lpt yum.repos.d]#
[root@lpt yum.repos.d]# rpm -qa ksh
[root@lpt yum.repos.d]#

Would u plz help me again ? I wait for ur response .. Thx

You are asking yum to install a debug version of ksh. Debug RPMs are not on your DVD.