use Local CD/DVD-ROM as your yum repository

This will very useful when you are running on slow internet connection. Instead of go through the internet connection, it is possible to use Local CD/DVD-ROM as your yum repository.

1. Insert DVD/ISO into DVD-Drive.
2. Mount the ISO from the DVD-ROM into /mnt directory :

[root@centos62 ~]# mount /dev/cdrom /mnt
mount: block device /dev/sr0 is write-protected, mounting read-only

3. Create centos62.repo text file in /etc/yum.repos.d/ with the following content. Please create something as follow:

[root@centos62 ~]# vi /etc/yum.repos.d/centos62.repo
name=DVD-CentOS6.2 repository

4. Finish. You can start install, remove and update using yum command :

WP Twitter Auto Publish Powered By :