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!!
CCG3Sr Systems AdministratorAsked:
Who is Participating?
Zephyr ICTCloud ArchitectCommented:
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=Some Media

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 AdministratorAuthor 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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.