Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
We have a RHEL server running in an environment with no internet access. I would like to keep this server updated but am obviously unable to connect it to RHN.
What is the best practice for performing remote/offline updates? Do I just build another server that has internet access and download all required updates? And how can I determine what updates I need without connecting the server to RHN?
And how will this work with subsriptions? I mean, I have 1 subsription, but building another RHEL server to download the updates would require another subscription right?
What have other people done? Thanks for the advice in advance.
Did just that, this is the response, which I found quite helpful:
Quote:
To update packages to a system without Internet connectivity, you need to download the ISO and then mount it locally. To download iso's, please check below given steps:
1. Log into your RHN account.
2. select your desired channel under the "Channels" tab.
3. then click "Easy ISOs" on the left or the "Download" link inside your selected channel.
Once you download the iso's, follow the below given steps:
1. Create directories to mount the iso file.
#mkdir -p /cdrom/iso
2. Mount the iso as loopback device.
#mount -o loop <iso-name> /cdrom/iso
Replace <iso-name> with the iso file.
3. Create a repository. The createrepo package needs to be installed on the system in order to run the following commands. createrepo is an optional package and is not installed by default.
#cd /cdrom
#createrepo .
#yum clean all
4. Create a file /etc/yum.repos.d/file.repo as follows:
Great. Maybe you should ask the mods to move the this to the 'Success Stories' section, even sticky it in RH forum. Just use the 'Report' button in your post.
That way everybody benefits.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.