LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 08-04-2008, 08:04 PM   #1
Tim356
LQ Newbie
 
Registered: May 2006
Distribution: RHEL 5.2
Posts: 27

Rep: Reputation: 15
Offline updates - best practice?


Here's the situation:

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.
 
Old 08-04-2008, 09:14 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994
TBH, if you've got a subscription, then you've paid for support, so just ring them and get the official answer.
 
Old 08-04-2008, 11:20 PM   #3
Tim356
LQ Newbie
 
Registered: May 2006
Distribution: RHEL 5.2
Posts: 27

Original Poster
Rep: Reputation: 15
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.

4. For details, please follow the below kbase, http://kbase.redhat.com/faq/FAQ_58_1500.shtm
http://kbase.redhat.com/faq/FAQ_80_594.shtm

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:

#cat /etc/yum.repos.d/file.repo
[RHEL 5 Repository]
baseurl=file:///cdrom
enabled=1

Running yum should now work with the iso file as the source.

For details, please check following kbase, http://kbase.redhat.com/faq/FAQ_103_10415.shtm

Let us know if you have any further queries.
Very happy with RH's support so far. Fast response and answered my question completely.
 
Old 08-05-2008, 01:54 AM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994
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.
 
  


Reply

Tags
offline, rhn, update


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Offline Updates mcd Red Hat 1 06-16-2008 04:03 PM
LXer: Updates, Beautiful Updates LXer Syndicated Linux News 0 01-28-2008 04:20 PM
yum check-update says no updates when there are updates? MarkEHansen Linux - General 7 12-29-2006 05:16 PM
Get "Online 'YOU' Updates" to install offline tisource Suse/Novell 4 08-15-2005 08:06 AM
practice linux hansi umayangan Linux - Newbie 3 03-01-2005 12:29 AM


All times are GMT -5. The time now is 02:06 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration