We help IT Professionals succeed at work.

On Redhat I need to pull an update form a DVD ISO and create a local repository

I hope someone can help me with this task. On Redhat 6.6 I need to create a local repository and then pull an update from a DVD ISO and to use that instead of running the YUM command since my system doesn't have internet access.

Thanks in advance for any help you can provide!!
Comment
Watch Question

Cloud Architect
Commented:
You need to transfer the ISO to your system to create a local yum repository, following would be a way...

cp /media/removable_drive/some-iso.iso  /ISOs

Open in new window


Then create a mount point, example /var/some-name/name-of-update and mount the image.

mkdir -p /var/some-name/name-of-media

Open in new window

mount -o loop,ro /ISOs/some-iso.iso  /var/some-name/name-of-media

Open in new window


Now in  /etc/yum.repos.d edit the existing repository, they have names ending in .repo, you might need to disable them by setting "enable=0"

Then add following entries in a new repository file, for example, "/etc/yum.repos.d/name-of-media.repo", it would look something like this

[name-of-media]
name=Some Media
baseurl=file:///var/some-name/name-of-media
gpgcheck=0
enabled=1 

Open in new window


Next clean up the yum cache.

yum clean all

Open in new window


See if you can use yum with the new the repository.
CCG3Sr Systems Administrator

Author

Commented:
Thanks! This worked great, but unfortunately I wasn't able to pull the update. Since the system was updated prior to being put into this secure environment then the system had some newer files on it so it wouldn't allow it to update. I ended p having to move it to a different VLAN to update and then move it back. Kind of a pain but it will do for now.