Home > Redhat Administration > Mount DVD as Yum repository

Mount DVD as Yum repository

1. Mount the Redhat source DVD to /mnt
# mount /dev/sr0 /mnt

2. Setup the repository information
# vi /etc/yum.repos.d/rhel-dvd.repo
name=Red Hat Enterprise Linux Installation DVD

3. Use the repository to install packages (For examples, installing snmp packages)
# yum install –enablerepo=dvd net-snmp*

Categories: Redhat Administration
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: