Issue with /etc/yum.repos.d/filename.repo file in RedHat 5 for yum command

5 pts.
Tags:
Redhat Linux
Software package manager
Very Secure FTP Daemon
VSFTPD
Yum
/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???
ASKED: October 24, 2008  4:16 AM
UPDATED: October 24, 2008  1:35 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • rkwac453
    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 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following