Yum is a yellow dog update manager it is a new package manager
introduced by redhat with RHEL5 in year 2007 but now in RHEL6 they also
have this facility to manage the packages. By using YUM we can manage
the packages in many ways. YUM is always working in Server /Client
environment. To configure YUM Server and Client perform the steps given
below
STEP 1 # mount /dev/dvd /mnt
mounting RHEL6 DVD TO AN LOCAL FOLDER
# cd /mnt/Packages
# rpm -ivh vsftpd
NOTE : Because YUM only can be configured either by using FTP or HTTP
# rpm -ivh createrepo
NOTE : There will be two dependencies just install them
#cd ..
# cp -rfv * /var/ftp/pub
This will start copy of dvd data into the /var/ftp/pub
# cd
# umount /mnt
# cd /var/ftp/pub
# createrepo -v Packages
NOTE: This will create the private repository of our database