LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-30-2015, 04:38 AM   #1
Mobilink
LQ Newbie
 
Registered: Sep 2015
Posts: 18

Rep: Reputation: Disabled
Yum problem in Red hat Linux 5.4 64 bit


Hi Friends,

I want add My Linux DVD as repository, I have doing the following things.
1)firstly I mount my DVD with the directory and / partition.
2)I have create my repo in /etc/repos.d/cdrom.repo

I have write the following line.
[cdrom]
name=cdrom
baseurl=file:///abc (where abc is the mount point for my DVD
enabled=1
gpgcheck=0

and save it, than I write yum install any software name it giv
error
[/U][/B]
Loaded plugins: security
file:///furqan/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/furqan/repodata/repomd.xml'
Trying other mirror.
Cannot retrieve repository metadata (repomd.xml) for repository: cdrom. Please verify its path and try again

please help me to rectify the issue.

regards

Mobilink
 
Old 09-30-2015, 05:43 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The baseurl must point to the directory with "repodata/"

Example ( My RHEL 5.3 `disk1' ) :
baseurl=file:///media/RHEL-5.3 i386 Disc 1/Server

"Server/" contains :
repodata/{ comps-rhel5-server-core.xml, filelists.xml.gz, other.xml.gz, primary.xml.gz, repomd.xml, TRANS.TBL


-
 
Old 09-30-2015, 05:52 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Well, on my Centos 5 system, that would be etc/yum.repos.d/CentOS-Media.repo and looks like this
Code:
# CentOS-Media.repo
#
# This repo is used to mount the default locations for a CDROM / DVD on
#  CentOS-5.  You can use this repo and yum to install items directly off the
#  DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
#  yum --enablerepo=c5-media [command]
#  
# or for ONLY the media repo, do this:
#
#  yum --disablerepo=\* --enablerepo=c5-media [command]
 
[c5-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS/
        file:///media/cdrom/
        file:///media/cdrecorder/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
HTH
(of course to use it I'd have to set 'enabled=1' )

Also note the different dir name : I'm pretty sure it would be that on RHEL5 as well.
Its the same on Centos6 as well.
 
Old 09-30-2015, 05:56 AM   #4
Mobilink
LQ Newbie
 
Registered: Sep 2015
Posts: 18

Original Poster
Rep: Reputation: Disabled
Folks,

Thanx for the reply, the problem has been solved by using below mention method

[cdrom]
name="cdrom"
#mediaid=1269263646.691048
baseurl=file:///furqan/Server
enabled=1
gpgcheck=0


regards

Furqan Ahmed
 
Old 09-30-2015, 03:46 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
keep in mind that the legacy hardware / software Operating system RHEL5
is well old

and 5.3 is even older and UNPATCHED!!!!!!

you would not run Microsoft XP sp2 nor sp3 missing 3 YEARS!!!!! of security updates

so please NO NOT DO THAT WITH A LINUX INSTALL

run the current UP TO DATE and PATCHED!!!!!
old legacy support RHEL 5.11

mind you you HAVE to buy the required server support contract
a std 1 year server license is $799 per year
https://www.redhat.com/wapps/store/catalog.html


or

install the FREE!!! clone of redhat
CentOS 5.11 - for the RATHER OLD legacy support
CentOS 6.7 current mainstream
or
CentOS 7.1 current new os

Last edited by John VV; 09-30-2015 at 03:49 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
•Red Hat Enterprise Linux 5 (UL6+) (32-bit. 64 bit supported in 32-bit mode) download oylf1985 Linux - Newbie 13 04-08-2019 12:55 PM
red hat enterprise 6.4 64 bit guest additions problem shiviredhat Red Hat 5 02-20-2015 08:30 AM
Problem using yum to update iptables and other software on Red Hat 7.3 (Fedora Lgcy) deeBs Fedora 2 08-25-2006 05:20 AM
Red Hat i386 32 bit upgrade to Red Hat IA64 bit louisb Linux - Enterprise 4 10-08-2005 01:28 AM
Problem using yum to update iptables and other software on Red Hat 7.3 (Fedora Lgcy) deeBs Red Hat 16 09-01-2005 06:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration