Adding cdrom to yum as repo

by
Share this Article: Facebook0Google+0Twitter0LinkedIn0Reddit0Pinterest0StumbleUpon0Digg

Question: How to add  cdrom to yum as repo?

Answer:  If you want to add your cd or dvd to yum as repository, you to follow these instructions.

First make a backup of /etc/yum.repos.d, remove those old repo files and add a new file called local.repo with the following lines:

[local]
name=Local CD Repo
baseurl=file:///mnt/cdrom


Here /mnt/cdrom is the location of CD mount. Change it as per your system’s configuration.

Once this is done, you can go ahead with yum install to install packages from CDROM.

{module user9-footer}

For questions please refer to our Q/A forum at : http://ask.unixmen.com/

Share this Article: Facebook0Google+0Twitter0LinkedIn0Reddit0Pinterest0StumbleUpon0Digg