LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices



Reply
 
Search this Thread
Old 04-19-2007, 11:20 AM   #1
ginda
Member
 
Registered: Mar 2004
Distribution: SUSE8.2, 9.2, Knoppix
Posts: 323

Rep: Reputation: 31
Setup local red hat updates server


We have adopted a few more red hat enterprise 3/4 servers which require keeping up to date using the up2date program used in red hat servers. I would like to setup a local server containing all the updates for the red hat enterprise 3/4 so that i can update our servers over the network rather than each one of them connecting to Red Hat Network.

I am having difficulty finding documentation on how to do this correctley. I understand that i need to copy RPM's to a physical local server but where do i get the files etc.

Thanks in advance
 
Old 04-20-2007, 03:54 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
well redhat's official way to do this is to use a "satellite" server which manages your rhel subscriptions and such without having to give all machiens internet access and such. not cheap though. you might prefer to look at maybe using yum on rhel? http://wiki.centos.org/HowTos/Packag...ment/YumOnRHEL i'm not too familiar with how up2date really works, but i'd image that if you were to persist using up2date, you can still use it against this base server.

apparently rhel5 is now using yum too, maybe losing up2date altogether according to the link there, so maybe this is a better appraoch anyway.

Last edited by acid_kewpie; 04-20-2007 at 03:58 AM.
 
Old 04-20-2007, 04:53 AM   #3
ginda
Member
 
Registered: Mar 2004
Distribution: SUSE8.2, 9.2, Knoppix
Posts: 323

Original Poster
Rep: Reputation: 31
Yes i have heard they are sticking to YUM in version 5. I was looking into a RHN proxy server i.e. caching the updates for local servers to update from.

Thanks for your help
 
Old 04-20-2007, 09:28 AM   #4
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,028
Blog Entries: 5

Rep: Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791
I didn't respond because I've done a little but am not an expert so wanted to see if anyone else had better ideas. With that caveat here goes:

One thing you can do is use up2date on a single server and use that as your basis for updating the others.
-Make sure your preferences on the single server download but don't install. This will put <package>.hdr and <package>.rpm files in /var/spool/up2date.
-Use a tool like rsync to copy /var/spool/up2date RPMs and Headers to your other servers' /var/spool/up2date (or /var/spoolRPMS or another directory)
-Modify /etc/sysconfig/rhn/sources to point to /var/spool/up2date as a local directory.
### A local directory full of packages (a "dir" repo). For example:
#dir my-favorite-rpms /var/spool/RPMS/

I actually did the above once but for some reason can't find the actual entry I'd made in the last step. I suspect I just uncommented the last line and substituted /var/spool/up2date for /var/spool/RPMS. Or maybe I rsync'ed to a different directory (e.g. /var/spool/RPMS) and did up2date using that.

If all else fails you can always do rpm -i on the items you find in /var/spool/up2date.

A couple of notes. The packages names in /var/spool/up2date aren't always exactly what you see when you run rpm -q <package> so sometimes you have to figure out which one you actually installed (e.g. it may download both an i386 and an i686 rpm of the package but the display may not tell you which architecture you installed so you'd have to know which you were on)

There's probably a way to modify sources to use one of your servers as a depot for up2date. The up2date man page may give you more info on that - if so you wouldn't need to do the rsync.
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Novell announces local Red Hat to SUSE Server training LXer Syndicated Linux News 0 03-19-2007 07:46 AM
how do I setup a secure IMAP server on Red Hat 8.0? canegames Linux - Software 2 06-27-2006 01:20 AM
Local server yum updates phillik747 Linux - Newbie 2 04-27-2005 01:11 AM
Updates on Red Hat 7.3 87stang Linux - General 2 03-05-2004 03:13 AM
Red Hat 9 updates RAM6519 Linux - General 15 07-30-2003 05:30 PM


All times are GMT -5. The time now is 01:52 AM.

Main Menu
Advertisement
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