NOTE: please find this steps in description TAB
step 1:- first mount your iso image then connect it
step 2: After mounting go to directory
/media/RHEL-6.6 Server.x86_64/Packages
and install these three packages with rpm
a. rpm -ivh deltarpm-3.5-0.5.20090913git.el6.x86_64
b. rpm -ivh python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
c. rpm -ivh createrepo-0.9.9-22.el6.noarch.rpm
step 3: after installing copy
Packages folder to Desktop
cp -rvf cp -rvf Packages/ /root/Desktop/mnt
step 4:-Then create repository for it
createrepo --database /root/Desktop/mnt
step 5 :-Edit /etc/yum.repos.d/rhel-source.repo
[rhel-source-beta]
name=Red Hat Enterprise Linux $releasever Beta - $basearch - Source
baseurl=file:///root/Desktop/mnt
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
step 6:-check with yum repolist all
step 7: install any package with yum