Red Hat How To


How to create YUM repository on RedHat 6.2

Assuming that we have Redhat Boot media as repository and want to create YUM repository.

1 .Create a file under /etc/yum.repos.d/redhat-dvd.repo and put following lines in.

name=Red Hat Enterprise Linux $releasever – $basearch – DVD
baseurl=”file:///media/RHEL_6.2 x86_64 Disc 1″

2. Change baseurl to mount point of Redhat Boot Media DVD. If you want to use some other ftp/http sources, change baseurl to that address.

3. run “yum check-update” command to rebuild your repository database. then it should start to rebuild repository database.

#yum check-update


3 Responses to How to create YUM repository on RedHat 6.2

  1. Pingback: How to install OpenStack Grizzly(All in One) on RHEL 6.4 » Red Hat How To

  2. Pingback: How to install VPN PPTP Server on RedHat 6.x » Red Hat How To

  3. Pingback: How to install OpenSwan IPSEC Host-to-Host between RHEL 6.x Servers » Red Hat How To

Leave a Reply

Your email address will not be published. Required fields are marked *