Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-10-2009, 06:04 AM   #1
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Rep: Reputation: 31
yum not working in rhel5

Friends ,

In my rhel5 ftp server I copy and paste all the rpms into the "/var/ftp/pub/Server" directory .

And from the rhel5 client machine I just configure the "/etc/yum.repos.d/rhel-debuginfo.repo" file :

[root@localhost yum.repos.d]# cat rhel-debuginfo.repo
name=Red Hat Enterprise Linux $releasever - $basearch - Debug

Now when I install a package "dialog" using yum from client pc , then I get following error :

[root@localhost ~]# yum install dialog
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories [Errno 4] IOError: [Errno ftp error] 500 OOPS: vsftpd: refusing to run with writable anonymous root
Trying other mirror.
Error: Cannot open/read repomd.xml file for repository: rhel-debuginfo
[root@localhost ~]#

In my RHEL5 server end I allow the anonymous ftp access :

# Uncomment this to enable any form of FTP write command.

Now , would u plz tell me where is the problem ?
Old 05-10-2009, 07:59 AM   #2
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Rep: Reputation: 37
you have put enabled=0, it should be enabled=1 and gpgcheck=0.
If that does not work I think this might help you:
1.There is a file called comps-rhel5-server-core.xml in your /var/ftp/pub/Server/repodata. Copy this file to a location, say /root/Desktop and remove that repodata directory in /var/ftp/pub/Server.
2.Now copy that comps-rhel5-server-core file from /root/Desktop to /var/ftp/pub/Server.
3.There is a package called createrepo in the Server directory, which is used to create repository. We need to install that rpm to the server. cd /var/ftp/pub/Server createrepo -g comps-rhel5-server-core.xml /var/ftp/pub/Server the repository is created.
7.service vsftpd restart.

8.try from the client.. if that does not work try disabling selinux in the systems. Even after that, it does not work...sorry for my misguided instructions...but this has worked for me!! all the best.

Last edited by saagar; 05-10-2009 at 08:27 AM.


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
erased yum.conf by forced yum-update in RHEL5.3, need help curiocurio Red Hat 3 04-21-2009 03:33 AM
RHEL5 licensing for Yum updates swaroopgr Linux - Enterprise 5 04-26-2008 03:27 AM
yum and RHEL5.1 spankbot Red Hat 4 03-30-2008 02:42 PM
rhel5 yum not working spikesnet Red Hat 3 08-01-2007 07:33 AM
Firefox 2.0 and Yum for RHEL5 vicky_me Red Hat 1 03-25-2007 08:20 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:57 PM.

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