How to Create Yum Repository from CDROM Media

Share this Article :

In this post, I will guide you on how to install or update the Redhat RPM packages from mounted local CDROM. Assume that you want to install the Redhat 5 packages. Please follow below steps:

1. Mount the CDROM media.

    [[email protected] ~]# mount /dev/hdc /media

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

    [[email protected] ~]# cd /etc/yum.repos.d
    [[email protected] yum.repos.d]# vi local.repos
    name=RHEL5 repository

3. Save and you can start install or update using yum command.

Leave a Reply