1、把光盘挂在到/mnt目录下面
# mount /dev/cdrom /mnt
mount: block device /dev/cdrom is write-protected, mounting read-only
2、配置yum源
在/etc/yum.repo.d/目录下新建一个myrhel.repo的文件,在文件中添加如下内容:
vi /etc/yum.repo.d/myrhel.repo
[rhelmedia]
name=Rad Hat Enterprise Linux 6.3
baseurl=file:///mnt/Server
enabled=1
gpgcheck=0
gpgkey=file:///mnt/RPM-GPG-KEY-redhat-release