LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-05-2009, 11:49 AM   #1
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Rep: Reputation: 37
Unable to install packages from YUM repository ( RHEL5 )


Friends,
In my office, there are 2 systems, on System 1 I did the following:
1.Copied all the 5 CDs of RHEL 5 in to /var/ftp/pub/Server and created repository with createrepo command "createrepo /var/ftp/pub/Server"
2.Started vsftpd service
2.In system 2 i did the following:

vi /etc/yum.repos.d/RHELrepo.repo
=> [RHELrepo]
name=RHELrepo
baseurl=ftp://system1:/pub/Server
gpgcheck=0
----------------------------------
now from the same system (system 2) i did the follg:
yum clean all
yum list all

It gives the error messg almost like this:

ftp:10.0.0.4ub/Server/repodata/repomd.xml
[Error no 4] IO Error < urlopen error)-2,Name or service not known)
Trying other mirror. Cannot open/read read repomd.xml file for repository:RHELrepo

Please let me know what should I do to correct this...?

Last edited by saagar; 01-05-2009 at 11:50 AM.
 
Old 01-05-2009, 01:26 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,353
Blog Entries: 55

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
Quote:
Originally Posted by saagar View Post
ftp:10.0.0.4ub/Server/repodata/repomd.xml
Can you verify the repomd.xml file exists, and both file and repodata dir have the right access permissions and that you can retrieve it manually without errors using a FTP commandline tool?
 
Old 01-05-2009, 02:30 PM   #3
baig
Member
 
Registered: Nov 2008
Location: وادی ھنزہ
Distribution: Solaris 5.10, Debian Server 5.2, CentOS 5.6
Posts: 226
Blog Entries: 3

Rep: Reputation: 38
What Distro is on your 2nd system? and if its RHEL5 then do you think its possible to use YUM package manager with RHEL5? because as far as I know(might be wrong) RHEL5 only uses "up2date" which is operational for paid users only...

Cheers!!
 
Old 01-05-2009, 03:34 PM   #4
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,363

Rep: Reputation: 135Reputation: 135
sagar there are 2 things here u have to concerned about

1.configure yum in RHEL5 correctly

2.configuring ftp server correctly so that accessed by other system

for details look here

http://freeshells.ch/~source/yumconfig_pg1.php
 
Old 01-05-2009, 06:17 PM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Baig

RHEL5 dropped up2date in favor of yum.

saagar

You may just want to use the Centos repos instead of the RHEL repos. Centos is RHEL with the logos removed. It is free to download/update and is binary compatible with RHEL.
 
Old 01-06-2009, 09:35 AM   #6
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Original Poster
Rep: Reputation: 37
Thanks friends for all of your replies. Divyasree, that site you referred to me was really useful. I just took the part I wanted. I dont know why there is no such useful basic information available in the net even after searching for more than an hour. Thanks a lot. Now, my yum is working only because of the tip given in that site.
This is the correct method:
Copy all the 5 CDs of RHEL 5 in to /var/ftp/pub/Server. Delete the /var/ftp/pub/Server/repodata directory except keeping a file called comps-rhel5-server-core.xml inside that directory to a safe place (ie./var/ftp/pub/Server/repodata/comps-rhel5-server-core.xml). Now copy that file to /var/ftp/pub/Server. Now create the repository with createrepo. Now let /var/ftp/pub/Server be your present working directory. Now issue the command createrepo -g comps-rhel5-server-core.xml /var/ftp/pub/Server (createrepo is in the 4th CD of RHEL5) 2.Started vsftpd service
2.In system 2 i did the following:

vi /etc/yum.repos.d/RHELrepo.repo
=> [RHELrepo]
name=RHELrepo
baseurl=ftp://system1:/pub/Server
gpgcheck=0
enabled=1

Now yum clean all
yum list all
Yum is done..!
 
Old 01-06-2009, 09:57 AM   #7
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,363

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by saagar View Post
Thanks friends for all of your replies. Divyasree, that site you referred to me was really useful. I just took the part I wanted. I dont know why there is no such useful basic information available in the net even after searching for more than an hour. Thanks a lot. Now, my yum is working only because of the tip given in that site.
This is the correct method:
Copy all the 5 CDs of RHEL 5 in to /var/ftp/pub/Server. Delete the /var/ftp/pub/Server/repodata directory except keeping a file called comps-rhel5-server-core.xml inside that directory to a safe place (ie./var/ftp/pub/Server/repodata/comps-rhel5-server-core.xml). Now copy that file to /var/ftp/pub/Server. Now create the repository with createrepo. Now let /var/ftp/pub/Server be your present working directory. Now issue the command createrepo -g comps-rhel5-server-core.xml /var/ftp/pub/Server (createrepo is in the 4th CD of RHEL5) 2.Started vsftpd service
2.In system 2 i did the following:

vi /etc/yum.repos.d/RHELrepo.repo
=> [RHELrepo]
name=RHELrepo
baseurl=ftp://system1:/pub/Server
gpgcheck=0
enabled=1

Now yum clean all
yum list all
Yum is done..!
sagar u r welcome,actually that site explains about accessing yum via http server
 
Old 01-07-2009, 09:55 AM   #8
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Original Poster
Rep: Reputation: 37
ok.thnx.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
RHEL5 - I have RHEL5 DVD , how i install ofice packages like SPREADSHEET ETC, bharath@linux Linux - Newbie 3 10-12-2008 02:24 PM
Unable to install packages from DVD using YUM Mr. ameya sathe Linux - Enterprise 21 08-23-2008 05:16 AM
Redhat 5.1 Yum Repository vs Fedora x.x Yum Repository lead2gold Linux - Software 1 05-22-2008 02:19 PM
Unable to find Repository/Packages tuse Linux - Newbie 2 12-01-2007 11:31 AM
Yum repository (dries) unable to update due to disk crash O(V)eGA_l2el) Fedora 6 11-09-2007 06:28 AM


All times are GMT -5. The time now is 02:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration