in Redhat, Server_doc

Redhat 6.2 Yum Repository from CDrom media

1. Mount the CDROM media first.

[root@redhat ]# mount /dev/cdrom /mnt

2. Create local.repo in yum.repos.d

[root@redhat ]# cd /etc/yum.repos.d
[root@redhat yum.repos.d]# vi local.repos

Insert all list text below :

[RHEL-6-Repository]
name=RHEL6 repository
baseurl=file:///mnt/Server
enabled=1
gpgcheck=0

Now try to listing the yum repository

[root@redhat ]# yum list