Home > HowTo, Linux > yum cdrom repo

yum cdrom repo

January 27th, 2012 Leave a comment Go to comments

How to use the cdrom RedHat .iso

I tested using Vmware ESX and RedHat 5.7

1 . Mount or insert the RedHat CD

2. Mount the cdrom
mount /dev/cdrom /mnt/cdrom

3. Write the repo file
vim /etc/yum.repos.d/rhel-cdrom.repo
[rhel-cdrom]
name=rhel-cdrom
baseurl=file:/mnt/cdrom/Server
enabled=1
gpgcheck=0

4. Run the yum command using only the cdrom repository
yum -y -v –disablerepo=* –enablerepo=rhel-cdrom install libstdc++-devel.x86_64

  1. No comments yet.
  1. No trackbacks yet.

VAMOVE *

*