Thursday, 6 February 2014

How to share Yum Repository threw FTP server

Hello Friends I am Deepak Saini  Today I Trying to explain the yum repository threw FTP server
So lets Start.
Setups:- 
1 1st of all we are configure the FTP server .
  If you not  know how to configure then read from here FTP server

2 Then same as nfs we are install the cd and copy the package directory from cd to /var/ftp/pub
 Syntax:-cp /media/<cd name>/Package /var/ftp/pub/
 In this we are copy the Package from the cd drive to /var/ftp/pub directory.

3 Now we are going to install the create repo packages to create repo data.With the all dependencies.
   Syntax:-rpm -ivh createrepo-0.9.8.-4.el6.noarch.rpm.

Dependencies
1.    deltarpm-3.5-0.5.20090913gt.el6.86_64.rpm

2     python-deltarpm-3.5-0.5.20090913git.el6.86_64.rpm

First we are install these dependencies.

After creating the repo data we are going for restart the ftp server or service.
  Syntax:-service vsftpd restart
  
5 Now we are on the service in all runlevels.
 Syntax:-chkconfig  vsftpd on 

Now we are going for create the repo file in the /etc/yum.repos.d/yum.repo
  Syntax:- vim /etc/yum.repos.d/yum.repo

               [client]
               baseurl = file:///var/ftp/Package/        (Path where our repo data placed)
               enabled = 1
               gpgcheck = 0
7 In the last we are list all check the repo data
  Syntax:- yum list all

Client side
1 We just create rpo file in the /etc/yum.repos.d/yum.repo
  Syntax:- vim /etc/yum.repos.d/yum.repo

         [client]
         baseurl = ftp:///192.168.0.15/Package  (Ftp server ip and directory where our repo data)
          enabled = 1
         gpgcheck = 0
2 Now we are list the repo data
 Syntax:- yum list all 

Now our server works:)

Thanks For reading and Sorry for my R.I.P english Jai Hind._/\_ 

0 comments:

Post a Comment