LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   how to use yum server configured on centos 5.5 on red hat? (http://www.linuxquestions.org/questions/linux-server-73/how-to-use-yum-server-configured-on-centos-5-5-on-red-hat-852954/)

piyusharora420 12-28-2010 11:44 PM

how to use yum server configured on centos 5.5 on red hat?
 
hi everybody,
i have installed centos 5.5 and rhel5 on vmware but i want to use rhel5 as a yum-client of centos 5.5 . but it is not working for me.i have worked on rhel5 with yum already but there was no problem at all.i am using centos 5.5 first time so i want to know whether there is any difference b/w configuring rhel5 and centos5.5?

my centos 5.5 yum server file is given below

Code:

[CentOS]
name=client3.example.com
baseurl=file:///var/ftp/pub/CentOS
enabled=1
gpgcheck=0

[repodata]
name=client3.example.com
baseurl=file:///var/ftp/pub/repodata
enabled=1
gpgcheck=0

my rhel5 client file is given below

Code:

[CentOS]
name=client3.example.com
baseurl=ftp://192.168.0.3/pub/CentOS
gpgcheck=0
enabled=1

[repodata]
name=client3.example.com
baseurl=ftp://192.168.0.3/pub/repodata
gpgcheck=0
enabled=1


please help me i am in great confusion

veeruhs 12-29-2010 12:06 AM

Hi,

Is the url ftp://192.168.0.3/var/ftp/pub/CentOS accessible from the RHEL 5.5 client browser and can you download packages from the browser. If the url is not accessible then it seems to be ftp problem.

If you are able to access the url from the browser, run the command CREATEREPO /var/ftp/pub/CentOS on the server once again and check if it works

Thanks,
Veerendra

piyusharora420 12-29-2010 01:40 AM

its working but only if i have removed server.example.com.repo
that is my rhel5 server repo file.if i keep it then rhel5 client does not pick client3.example.com.repo.
what is the reason behind it ?


All times are GMT -5. The time now is 02:32 AM.