How to add RHEL DVD as Repository

I’m planning to try out RHEL for one of my Domino project because the customer wants it. So, it’s a good chance to learn a new distribution because my knowledge is limited with Ubuntu, Debian and a little with Slackware.

 

I tried RHEL 6.1 on VirtualBox and haven’t got the networking to work yet,  not having the time to figure it out yet, but what I learnt today is how to add the Red Hat DVD as a repository to install package.

 

1. Go to /etc/yum.repos.d/

 

2. Create a new file, named it rhel-dvd.repo

 

3. Enter the following content

 

[rhel-dvd]

name=RHEL DVD

baseurl=file:///media/RHEL/Server/

enabled=1

gpgcheck=0

 

Notes: replace the baseurl with the actual folder where you mount your DVD, it dit it with this command

 

mount /dev/cdrom /media/RHEL

 

4. Cleaning the cache

 

yum clean all

 

5. Done, you can now install package from the command with yum

Related posts:

Share

About number.0