LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 05-10-2009, 07:04 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 490

Rep: Reputation: 30
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
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=ftp://192.168.0.244/pub/Server
#enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
--------------------------------------------------------------------

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
ftp://192.168.0.244/pub/Server/repodata/repomd.xml: [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.
write_enable=YES


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

Rep: Reputation: 37
Hai,
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.
4.now cd /var/ftp/pub/Server
5.run: createrepo -g comps-rhel5-server-core.xml /var/ftp/pub/Server
6.now 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 09:27 AM.
 
  


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


All times are GMT -5. The time now is 06:41 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