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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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-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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.