5 pts.
 Issue with /etc/yum.repos.d/filename.repo file in RedHat 5 for yum command
/etc/yum.repos.d/<filename>.repo fie issue ** I want to use yum command on my system to install rpm from RedHat CD. Hi i have installed RedHat 5 on my system and configured VSFTPD on it. vsftpd service is running. and in /var/ftp/pub i created a Server folder and copied all RedHat rpm's in to it from RedHat CD. and then created /etc/yum.repos.d/<fiename>.repo file. Details follows [root@localhost ~]# cat /etc/yum.repos.d/moid.repo [yumfiles] name=yumfiles baseurl=ftp://127.0.0.1/pub/Server gpgcheck=0 enable=1 [root@localhost ~]# yum clean all Loading "rhnplugin" plugin Loading "installonlyn" plugin This system is not registered with RHN. RHN support will be disabled. Cleaning up Everything [root@localhost ~]# yum update Loading "rhnplugin" plugin Loading "installonlyn" plugin This system is not registered with RHN. RHN support will be disabled. Setting up Update Process Setting up repositories ftp://127.0.0.1/pub/Server/repodata/repomd.xml: [Errno 4] IOError: [Errno ftp error] 550 Failed to change directory. Trying other mirror. Error: Cannot open/read repomd.xml file for repository: yumfiles ***I am getting this error. Before i tried this, it worked. but now i am getting error... Could any one hep me???

Software/Hardware used:
ASKED: October 24, 2008  4:16 AM
UPDATED: October 24, 2008  1:35 PM

Answer Wiki:
hi Moid,
I think there is an issue with Syntax which you are using.
first when you are configuring an yum server, first copy the Packages to directory /var/ftp/pub/
Secondly, once it is done, run the comman createrepo -v /var/ftp/pub/
Thirdly, go to: vim /etc/yum.repos.d/(filename).repo
in this file,
[yumfiles]
name=(ur filename).repo
baseurl=file://(link where the packages are located)
enabled=1
gpgcheck=0
(then save and quit)
then run the command
yum clean all
& yum list all
If you follow this steps you will able to configure the yum server.
Regards,
Ravi.
Last Wiki Answer Submitted:  July 30, 2012  9:52 am  by  rkwac453   125 pts.
All Answer Wiki Contributors:  rkwac453   125 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

hi Moid,I think there is an issue with Syntax which you are using.first when you are configuring an yum server, first copy the Packages to directory /var/ftp/pub/Secondly, once it is done, run the comman createrepo -v /var/ftp/pub/Thirdly, go to: vim /etc/yum.repos.d/(filename).repoin this file,[yumfiles]name=(ur filename).repobaseurl=file://(link where the packages are located)enabled=1gpgcheck=0(then save and quit)then run the commandyum clean all& yum list allIf you follow this steps you will able to configure the yum server.Regards,Ravi.

 125 pts.