Wednesday, September 19, 2012

YUM Master Configuration in RHEl 6


YUM master Configuration

Mount the RHEL 6 ISO or DvdConfiguration of Yum Server
STEP 1:
RHEL 6 YUM Configuration is little bit different from RHEL 5
in RHEL 6 we need to install Dependencies packages  for Createrepo package First and then we need to install the createrepo package.
 
STEP 2:
#rpm -ivh vsftpd-2.2.2-6.el6.x86_64.rpm
HERE YOU GET GET THE BELOW ERROR IF U INSTALL CREATEREPO  PACKAGE WITHOUT INSTALLING DEPENDENCIES FIRST
# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm
warning: createrepo-0.9.8-4.el6.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
error: Failed dependencies:
        deltarpm is needed by createrepo-0.9.8-4.el6.noarch
        python-deltarpm is needed by createrepo-0.9.8-4.el6.noarch
STEP 3:
Install Below two dependenciey packages first
# rpm -ivh deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
# rpm -ivh python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm

Now Try to install Createrepo package it will install Sucessfully# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm

 STEP 4:
Copy the Packages from CDROM to /var/ftp/pub folder. The folder will be automatically created once we install the vsftpd Package
[root@server /]# cp -r /mnt/Packages /var/ftp/pub/

STEP 5:
Create a repodata which will be used as a repository of packages for Yum configuration
 
# createrepo -v /var/ftp/pub

Saving Primary metadata
Saving file lists metadata
Saving other metadata
[root@server Packages]#

STEP 6:
Configuration of YUM Master.

cd /etc/yum.repos.d
# vi server.repo
[server]
name=server.hp.com
baseurl=ftp://192.168.24.145/pub/Packages        OR         baseurl=file:///var/ftp/pub/Packages
enabled=1
gpgcheck=0

STEP 7:
# yum clean all
#yum update
******************************LINUX~ROOT~SHELL*****************************

No comments:

Post a Comment