Monday, December 5, 2011

Making CD/DVD as yum repository

1. Mount the CD/DVD to a folder

# mkdir /cdromcdrom

# mount -t iso9660 -o ro /dev/cdrom /cdrom

2. Create a repository file for that folder in /etc/yum.repos.d/

# nano /etc/yum.repos.d/cdrom.repo

Now add the following content to the file and save the file

[cdrom]
name=CD repo
baseurl=file:///cdrom
gpgcheck=0

Now we can install software using the yum command

No comments: