Yum is used for search erase and update and install the rpm packages this update manager resolve the problem of dependencies of a software . In this blog i am going to tell you how to create yum repository on your computer . this method can be used for both fedora and red hat .
First you will need the packages for which you need to create yum repo i am using red hat dvd for the packages . now you will need to install the createrepo software for you machine following is the command
yum install createrepo
After that you have to install vsftp this is ftp server
yum install vsftp
After that you have to mount you dvd to /var/ftp/pub . following is the command for creating yum repo
createrepo -v /var/ftp/pub/Server
createrepo -v /var/ftp/pub/Vmt
Server and vnt are two where all packages are placed if you are using foedra dvd the you have to create repo for Packages folder . That is it you can use this repo to install packages on you computer or any other computer on your network .