首先手动挂载光盘
然后创建目录 文件
Mkdir –v /media/cdrom
Mount /dev/cdrom  /media/cdrom<每次重启需要从新挂载》   cd /media/cdrom  ls   查看    table键的补全利用安装
Vim bendi.repo
# repos on instructor for cla***oom use
 
# Main rhel5 server
[base]
name=Instructor Server Repository
baseurl=file:///media/cdrom/Server
gpgcheck=0
 
# This one is needed for xen packages
[VT]
name=Instructor VT Repository
baseurl=file:///media/cdrom/VT
gpgcheck=0
 
# This one is needed for clustering packages
[Cluster]
name=Instructor Cluster Repository
baseurl=file:///media/cdrom/Cluster
gpgcheck=0
 
# This one is needed for cluster storage (GFS, iSCSI target, etc...) packages
[ClusterStorage]
name=Instructor ClusterStorage Repository
baseurl=file:///media/cdrom/ClusterStorage
gpgcheck=0
~            一切ok 啦  验证  yum