Configure and Install YUM Server In Redhat 5.5



YUM(Yellow-dog Updater and Modifier) is another and advanced way of installing the packages in Linux distro's such as Red-hat, Fedora and CentOS.
In RHEL4 installing packages is a monotonous process, sometimes its headache to install all the dependencies. So Red-hat come with a solution to overcome this dependencies problem in most situations, the solution for this is nothing but YUM implementation. This will resolve this dependency issue and other known issues. Here we are going to present some basic way how to use YUM utility to install packages locally
Basic YUM implementation locally:
 
Step1 :Copy the entire OS cd's content to Hard-drive as below.
#cp -ar /media/cdrom/Server/* /destinationfolder
Step2: install the createrepo package
#rpm -ivh createrepo*
Step3: go to the Server folder and move the repodata file to /tmp
Step4: copy the dependency

   createrepo -vg /tmp/repodata/comps-rhel5-server-core.xml /opt/rhel/Server

Step5: go to yum.repos.d
   cd /etc/yum.repos.d
                                                                                                                                                                    
Step6: create a repo file
   cp rhel-debuginfo.repo server.repo
Step7: edit the repo file
   vi server.repo
=============================================
   [server]
   name=Red Hat Enterprise Linux
   baseurl=file:///opt/rhel/Server
   enabled=1
   enabled=0
=============================================
Step8: restorecon -R /opt/rhel/Server
Step9: yum clean all

Comments

Popular Posts