How to configure YUM server

The Yellowdog Updater, Modified (YUM) is an open-source command-line package-management utility for RPM-compatible Linux operating systems.

How to configure yum server on RHEL-6.0

Step-1  First of all mount rhel6 dvd

  Insert Rhel6 dvd then write following command to mount.

]#  mount   /dev/cdrom   /mnt


Step-2  Now install the following required package to create repository and ftp server so that network client can also use yum server for package installation.

]#   cd  /mnt/Packages

]#   rpm   -ivh  vsftpd-2.2.2-6.el6.x86_64.rpm

]#   rpm   -ivh  createrepo-0.9.8-4.el6.noarch.rpm



]#    chkconfig   vsftpd   on

]#    service   vsftpd   start


Step-3  Next you have to copy all packages from dvd to pub folder.

]#  cp   -r    /mnt/Packages   /var/ftp/pub/


Step-4  Now create repository with group  repository.

]#   createrepo   /var/ftp/pub/Packages

]#   cp   /mnt/repodata/1a7fc54d30d0d44222742c63069ab0126afef9f160931cc15e564dbe6414f268-comps-rhel6-Server.xml


]#   cd   /var/ftp/pub/Packages

]#  createrepo   -g  comps.xml    /var/ftp/pub/Packages


How to configure yum client

For client you have to create only one file with  .repo  suffix.

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