LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   yum not working in rhel5 (https://www.linuxquestions.org/questions/linux-newbie-8/yum-not-working-in-rhel5-724968/)

shipon_97 05-10-2009 06:04 AM

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 ?

saagar 05-10-2009 07:59 AM

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.


All times are GMT -5. The time now is 03:17 PM.