Sunday, 1 December 2013

How to Configure Yum Server On linux

Yum Server  :- Yum server is a server which install the all dependency of  packages mostly which are on the Red hat Linux Disc 

lets Start
Setup 1 :- Copy the packages from Red hat disc and paste everywhere on the desktop,opt,and root where  you want in my case i copy on desktop
 Before You starting the installion of createrpo package you must in the package directory

   # cd /Desktop/Packages

Setup 2 :- Install the packager of createrepo-0.9.8.-4.el6.noarch.rpm. But when you aare install it you
                 
 face a problem dependencies.

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

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

Setup 3 :- So you first install the dependencies like
 
               #rpm -ivh  deltarpm-3.5-0.5.20090913gt.el6.86_64.rpm
Setup 4 :- Now We are going to install the second  dependency

                 # rpm -ivh    python-deltarpm-3.5-0.5.20090913git.el6.86_64.rpm
Setup5 :- Now the time to install the createrepo-0.9.8.-4.el6.noarch.rpm 
             
Setup7:- Now we are create repository of all dependencies
                   

                 # createrepo -v /root /Desktop/Packages
Setup8 :- Now we are create a local.repo file in the /etc/yum.redos..d/
               
                now create local.repo file here
            # vim local.repo    (press i for insert mode in vi editer )
                [localrepo]
                name = local yum server
                baseurl = file:///root/Desktop/Packages   ( in my case)
                gpgcheck = 0  
                                                ( esc(button) :wq for save and quite )

Now your server is ready to use 
              For check the server working 
           #yum list all
Here all dependencies are seen which which automatically install when you install packages

 :-Thanks for reading and sorry for my R.I.P English so ignore   the English and try to understand the tut
            



 

0 comments:

Post a Comment