Sunday, September 2, 2012

YUM Configuration


In this section I am just showing you how to configure YUM SERVER. Actually very soon I'll write a section for 11g Release2 RAC configuration, there this YUM Configuration will help you.

Step-1: cd /media/RHEL_5.4\ x86_64\ DVD/Server/

Step-2:  [root Server]# rpm -ivh vsftpd-2.0.5-16.el5.x86_64.rpm  (it will create a directory named as /ftp/pub which will be accessiable to  all in the n/w)

Step-3: copy Server folder from Linux DVD to /ftp/pub folder

Step-4: [root Server]# rpm -ivh createrepo-0.4.11-3.el5.noarch.rpm 


Step-5:  [root]# rm -rf /var/ftp/pub/Server/repodata/   (to remove old repository)

Step-6: [root ~]# createrepo -vg /media/RHEL_5.4\ x86_64\ DVD/Server/repodata/comps-rhel5-server-core.xml /var/ftp/pub/Server/


Step-7: Create Repository File

  # vim /etc/yum.repos.d/yum.repo

        [server]
name=server
baseurl=file:///var/ftp/pub/Server
gpgcheck=0
enabled=1

Step-8: # service vsftpd restart
Step-9: # yum list all

Thanks,

No comments:

Post a Comment