Thursday, March 21, 2013

Install RHEL Packages with yum from CD/DVD

You may want to install RHEL or CentOS packages before registering with RHN or without a network connection.  You can yum install packages from the installation CD/DVD by specifying a local ISO repo.

Mount your disc or image at /mnt/cdrom and create /etc/yum.repos.d/rhel-iso.repo with the following contents:

[rhel-debuginfo]
name=Red Hat Enterprise Linux ISO
baseurl=file:///mnt/cdrom/Server
enabled=1
gpgcheck=0
You should now be able to yum install your package from the CD.

No comments: