WEL COME...Tamilnet Live...தமிழ்நெட் லைவ் ..வருக வருக ...

Select Your Language

YUM vs RPM



What  is YUM

The Yellow Dog Updater Modified(YUM)  is  a  Package  management  application  for computers  running  Linux  Kernel  based  Distribution/Linux  Operating  Systems. Yum  is  a  standard  method  of  managing  the  installation  and  removal  of  software package. We  can  install  or  remove  any  Package  through  rpm  command  but  rpm ask  for  dependency . It  will  be  very  hard  task  to  install  each  dependency manually. YUM is  Pre-requirement   of  any  Server.  If Administrator  want  to  create any  Server  such  as  web  Server  or  any  other  then  firstly  they  need  to  create YUM  because  YUM  is  used  to  install/remove  any  Package .
-----------------------------------------------------------------
There are two types of Yum repositories :-
-----------------------------------------------------------------
1. Online Yum repository
2. Offline Yum repository
Online  Yum  repository  used  to  update/install  package  through  any  webContent.
Offline  Yum  repository  used  to  update/install package through your local repository.


RPM vs. YUM

Rpm stands for Redhat package management. rpm command is used to Install or remove  any package in Redhat Linux Operating System. we can install or remove any rpm package through rpm command. but in most cases one package is depend on many other rpm package so firstly we will install related If  we  want  that  system  find  all  dependencies  automatically  then  we  should  create YUM (yellow dog updater modified). YUM  find  out  all  dependencies  automatically  and  install package  that  you  want.
  we  use YUM  to  resolve  dependencies  and  install required Package.

To install Package                  rpm   -ivh PackageName
To remove Package               rpm -e PackageName
To query Package                  rpm –qa PackageName
To query Package with detail  rpm –qi   PackageName                                                                                         
To query of any  file               rpm -qf  filename
To Upgrade Package              rpm -U PackageName


YUM  CREATION  IN  RHEL5      

Steps :-> 1)       Insert RHEL5 DVD in Your DVD writer
Mount your DVD->        mount   /dev/cdrom   /mnt
Create  a  Directory  and   Copy   DVD   in   to   created   Directory :-->
mkdir /swastik ; cp -rvf /mnt/* /swastik
Install   the   createrepo   Package :->
rpm –ivh   /swastik/Server/createrepo*
Create   Repository :->
createrepo   –g   /swastik/Server/repodata/*   /swastik/Server
createrepo   -g    /swastik/VT/repodata/*   /swastik/VT
createrepo  -g   /swastik/Cluster/repodata/*  /swastik/Cluster
createrepo  -g   /swastik/ClusterStorage/repodata/*  /swastik/ClusterStorage
Create   Repository   file:-
vim   /etc/yum.repos.d/swastik.repo                    {press i for insert}
[base]
name=base
baseurl=file: ///swastik/Server
enable=1
gpgcheck=0
  
[vt]
name=vt
baseurl=file:///swastik/VT
enable=1
gpgcheck=0

[cluster]
name=cluster
baseurl=file:///swastik/Cluster
enable=1
gpgcehck=0

[clusterstorage]
name=clusterstorage
baseurl=file:///swastik/ClusterStorage
enable=1
gpgcehck=0                            save this file by :---> esc, shift+: wq
Clear   Previous   Cache   and   Update   Packages->
Yum clean all ; Yum update
To Install Package :->       
Yum  install  PackageName
example:-  yum install bind*


YUM SERVER IN RHEL6   

Mount your  RHEL6 DVD->        mount   /dev/cdrom   /mnt

Create  a  Directory  and   Copy   DVD   in   to   created   Directory :->
mkdir /swastik ; cp  -rvf  /mnt/*  /swastik
Install   the   createrepo   Package :->
rpm –ivh   /swastik/Packages/deltarpm*
rpm –ivh   /swastik/Packages/python-deltarpm*
rpm –ivh   /swastik/Packages/createrepo*
Create   Repository :->
createrepo   –g   /swastik/repodata/21*   /swastik/Packages
Create   Repository   file:->
vim   /etc/yum.repos.d/swastik.repo                    {press i for insert}
[base]
name=base
baseurl=file: ///swastik/Packages
enable=1
gpgcheck=0                    
                                     save this file by :---> esc, shift+: wq
Clear   Previous   Cache   and   Update   Packages->
Yum clean all ; Yum update
To Install Package :->              
Yum  install  PackageName  -y
example:->  yum  install nfs*

To  See all Packages:->
yum  list all

To See Package Information:->
yum info

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

No comments: