1.首先挂载redhat6.3 的系统境像安装包在系统 
mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
2.修改yum配置文件
mv /etc/yum.repos.d/rhel-source.repo /etc/yum.repos.d/rhel-source-iso.repo
vim /etc/yum.repos.d/rhel-source-iso.repo
##############主要修改文件一下内容###########
[rhel-source-iso]
name=Red Hat Enterprise Linux $releasever - $basearch - Source
baseurl=file:///mnt/cdrom
enabled=1
gpgcheck=1
gpgkey=file:///mnt/cdrom/RPM-GPG-KEY-redhat-release
3.刷新yum
yum clean all
yum makecache
4.检测yum配置是否成功 用yum list
PS:sentOS本地yum源配置也差不多