Thursday, 20 January 2011

Using the distro DVD as repo in Red Hat

Firt, mount the distro DVD or ISO.

Create a file /etc/yum.repos.d/dvd.repo.

Open the .discinfo in the root of the DVD or ISO and copy the code of the first line.

Open /etc/yum.repos.d/dvd.repo and fill it as follow:

[dvd]
mediaid=1170972069.396645*
name=DVD for RHEL5
baseurl=file:///path/to/media/Server
enabled=1
gpgcheck=0

Replace the mediaid value with the code copied from the .discinfo file.

Then, use yum with --noplugins

:)

No comments:

Post a Comment