Yum installation problem from DVD !

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Yum installation problem from DVD !
# 1  
Old 07-05-2009
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 ... ...
# 2  
Old 07-05-2009
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.
# 3  
Old 10-13-2009
Problem with YUM in RHEL 5

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
# 4  
Old 10-13-2009
You are asking yum to install a debug version of ksh. Debug RPMs are not on your DVD.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Installation of virt-manager while yum update and yum install rhvm does not work

I have downloaded RHEV-H 4.2 Red Hat Virtualization - Red Hat Customer Portal (RHVirtualization 4.2 Host and Manager iso). I uploaded the image and installed on an HP G9 server baremetal. I found I dont have a WAN/net connectivity later on HPG9 server. How can I still install virt-manager on... (1 Reply)
Discussion started by: Paras Pandey
1 Replies

2. Red Hat

How to make boot.iso image from rhel6 installation dvd iso ?

Hello Everyone, Can anyone let me know how to make minimal boot.iso from rhl6 installation dvd iso image. I have a dvd image with me but i want to make just a minimal boot media. Somehow it is not shipped with dvd iso. I know we can download boot.iso from redhat site but is there any anyway we... (5 Replies)
Discussion started by: Rohit Bhanot
5 Replies

3. Red Hat

yum problem

hi i am not able to do yum update in centos5 i was not able to use yum at all.i am getting an like this. #yum update Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Setting up Update Process No Packages marked for Update please help me what i have missed (6 Replies)
Discussion started by: praneel2k
6 Replies

4. UNIX for Dummies Questions & Answers

Centos commands: Yum Upgrade versus Yum update

Hi, I would like to know the difference between YUM UPDATE and YUM UPGRADE. The man pages say upgrade is same as update with the obsolete option. And by default it says the obsolete option is turned on, which would make them equivalent. Does not say what obsolete does. Can someone please... (3 Replies)
Discussion started by: mojoman
3 Replies

5. Red Hat

Remote installation of rpm package (Using YUM)

Hi, I have configured YUM repository on a server and we have 10 linux machine (clients). Is there any way we can install a package on all the 10 machines from YUM repository server? Please help me. (7 Replies)
Discussion started by: uday123
7 Replies

6. Red Hat

createrepo...YUM installation

i have 5 cd's of RHEL 5. how do i know which cd is the createrepo package in... is there any command or flags you can add to rpm command to install and the install processes will automatically ask for certain # of cd... (0 Replies)
Discussion started by: dplinux
0 Replies

7. Solaris

Help me, please! Solaris 10 hands-off installation from a bootable DVD

Hello, I have a problem with installing the Solaris 10 using a bootable DVD with a flar archive. I want this installation to be totally hands-off, but unfortunately after I run this boot command at the ok prompt: ok boot cdrom - install ... the system is rebooted and the interactive... (5 Replies)
Discussion started by: Przemek
5 Replies

8. Solaris

how to split solaris installation dvd to cd?

hello. i have using OpenSolaris 10. i need to split OpenSolaris 10 Dvd to CD's? how i can? thanks. (1 Reply)
Discussion started by: hotjava
1 Replies

9. Linux

How to customize installation DVD/CD of Linux ?

Hi, I have one software which I can install on linux. I want to put that on installation CD of linux. So whenever I will install Linux it will automatically install websense. How can I do that ? Thanks Neelesh (1 Reply)
Discussion started by: neel.gurjar
1 Replies
Login or Register to Ask a Question