I have installed Centos5.2 I have made yum server and I have done createrepo /var/ftp/pub/CentOS/ it is successfully done and I allowed /pub directory from selinux also but what problem I get is below :
[root@rahil ~]# yum install bind ftp://172.16.19.66/pub/CentOS/repodata/repomd.xml: [Errno 4] IOError: [Errno ftp error] (111, 'Connection refused') Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: server installer. Please verify its path and try again and I have restarted vsftpd service also. |
Quote:
I have created repo file in /etc/yum.repos.d/server.repo and I have done createrepo /var/ftp/pub/ also and I have restarted vsftpd service also here is my repo configuration below [server installer] name=CentOS Linux baseurl=ftp://172.16.19.66/pub/CentOS/ enabled=1 gpgcheck=0 say if any problem |
I wish I knew more about CentOS
Here is a support forum hosted by the CentOS community http://centos.org/modules/newbb/view...d=7683&forum=1 you can choose which version..and it has both forums and irc chat Here is a document page: http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.2/ Look here for info on how the repository file should look: http://www.centos.org/docs/5/html/yu...intenance.html Sample [base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 protect=1 #released updates [update] name=CentOS-$releasever - Updates mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 protect=1 #packages used/produced in the build but not released [addons] name=CentOS-$releasever - Addons mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons #baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 protect=0 #additional packages that may be useful [extras] name=CentOS-$releasever - Extras mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 protect=0 #additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever - Plus mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 protect=0 #contrib - packages by Centos Users [contrib] name=CentOS-$releasever - Contrib mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib #baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/ gpgcheck=1 enabled=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 protect=0 Read the discussion about the options and what they mean |
Quote:
I have solved this problem, What I did is I disable SElinux then I have allowed from SELinux with "restorcorn /etc/yum.repos.d/server.repo /var/ftp/pub/ and it works. |
All times are GMT -5. The time now is 07:21 AM. |