Friday, 7 February 2014

How to share yum repository threw HTTP sharing

Hello Friends I am Deepak Saini Today we will discus on the yum repository threw HTTP sharing.
Setups:-
ON server
1st of all we are prepare our http sharing .So 1st we are configure the http sharing.
   1.1 Install the httpd package with dependencies .
          Syntax:- yum install htpd 


         In this i am install the httpd threw yum server if you are not know about read from here
1.2 After package installation we are start the service.
   Syntax:-service httpd start
1.3 Now we are going to trun on the service in all runlevels.
      Syntax:-chkconfig httpd on  
 1.4 Now our server is ready to share any file or directory  threw http.
 1.5 We are creating the two directory one s


2 Now we are copy the package from the cd drive and put in the /var/www/html/
  Syntax:-cp /media/<Disk name >/Packages/  /var/www/html/





3 Now We are confgure the yum server which i configure before it So i not configure.
   Major changes in the Yum.repo file and nothing big changes in this  
4 Now we are create yum repo file in the same directory /etc/yum.repos.d/yum.repo
  
In this case we are delete our local.repo file.Otherwise our server not work. 
 Syntax:-vim /etc/yum.repos.d/yum.repo
               [client]
               baseurl = file:///var/www/Packages/        (Path where our repo data placed)
               enabled = 1
               gpgcheck = 0

 then press Esc button and :wq for saving.

On client side 
1
We are not do many thing on client side just change in the yum.repo file.
    Syntax:- vim /etc/yum.repos.d/yum.repo
       [client]
               baseurl = file:///<your server ip >/Packages/        (Path where our repo data placed)
               enabled = 1
               gpgcheck = 0

              then press Esc button and :wq for saving.
 
server ip like 192.168.0.100 like which your pc ip where you share yum repo data.

2 Now check your yum list.
 Syntax:- yum list all 

if this command run then your server is running otherwise not. 
Thats all

 Thanks for Reading and sorry for My R.I.P english Jai hind _/\_
if any prblm then comment and we are trying to solve your prblm 
Greetz :- Govind singh ,DeadManINDIA
 

0 comments:

Post a Comment