LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
Search this Thread
Old 07-05-2006, 11:56 AM   #1
Deviathan
Member
 
Registered: Dec 2005
Posts: 46

Rep: Reputation: 16
Up2date and local repository


Hi all,
I have 2 servers that have RHEL 3 ES on them, both with the same config. I used up2date to download and patch one of the systems and kept the rpms to install on the other one. I guess my question is, can I get up2date to look in that directory and patch the other server or is there a better method that would be as safe? These are critical servers and I can't really take a chance on doing something like "rpm -Uvh *.rpm" and end up messing up the install. Any thoughts?
 
Old 07-05-2006, 02:26 PM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,009
Blog Entries: 5

Rep: Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787
I don't know of a way to make it use anything as the up2date source other than RH's site.

What you can do is copy *.rpm and *.hdr from /var/spool/up2date of the server you patched with up2date to your other one. You can then do the rpm install of the items that were installed to keep your servers in sync.

rpm -qa will show you everything you have installed (not everything in the up2date directory is) on the first server. You can then run rpm commands to install those packages on the second server.
 
Old 07-05-2006, 04:01 PM   #3
Deviathan
Member
 
Registered: Dec 2005
Posts: 46

Original Poster
Rep: Reputation: 16
Actually, I downloaded the rpms to an NFS mount that both systems can see. I was able to avoid re-download by just pointing up2date to that mount. Because of the high memory useage on the server (maxed mem useage), download bandwidth is slow and would take forever to download over 600 megs of stuff. up2date just skips the packages it sees as already downloaded, making the patching process much faster than it would be.
 
Old 12-13-2006, 03:36 PM   #4
hooliganism
LQ Newbie
 
Registered: Nov 2006
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by Deviathan
Actually, I downloaded the rpms to an NFS mount that both systems can see. I was able to avoid re-download by just pointing up2date to that mount. Because of the high memory useage on the server (maxed mem useage), download bandwidth is slow and would take forever to download over 600 megs of stuff. up2date just skips the packages it sees as already downloaded, making the patching process much faster than it would be.
Deviathan, I am in a similar situation and I think your solution would meet my needs.

How exactly do you point up2date to a central NFS mount-point?

Also, did I infer correctly that all of the updates that have been applied to my system can be found in /var/spool/up2date? I ask because I believe there were dozens of updates that have been installed over the course of running up2date, however, the following is all I see in my /var/spool/up2date directory...

Thanks,
Mike



# pwd
/var/spool/up2date
# ll
total 1368
-rw-r--r-- 1 root root 37480 Nov 2 16:22 ethereal-0.99.0-EL4.2.i386.hdr
-rw-r--r-- 1 root root 13964 Nov 2 16:22 ethereal-gnome-0.99.0-EL4.2.i386.hdr
-rw-r--r-- 1 root root 74748 Nov 2 16:25 mozilla-1.7.13-1.4.1.i386.hdr
-rw-r--r-- 1 root root 12132 Nov 2 16:25 mozilla-chat-1.7.13-1.4.1.i386.hdr
-rw-r--r-- 1 root root 368328 Nov 2 16:25 mozilla-devel-1.7.13-1.4.1.i386.hdr
-rw-r--r-- 1 root root 13920 Nov 2 16:25 mozilla-dom-inspector-1.7.13-1.4.1.i386.hdr
-rw-r--r-- 1 root root 12124 Nov 2 16:25 mozilla-js-debugger-1.7.13-1.4.1.i386.hdr
-rw-r--r-- 1 root root 20292 Nov 2 16:25 mozilla-mail-1.7.13-1.4.1.i386.hdr
-rw-r--r-- 1 root root 12296 Nov 2 16:25 mozilla-nspr-1.7.13-1.4.1.i386.hdr
-rw-r--r-- 1 root root 21208 Nov 2 16:25 mozilla-nspr-devel-1.7.13-1.4.1.i386.hdr
-rw-r--r-- 1 root root 13788 Nov 2 16:25 mozilla-nss-1.7.13-1.4.1.i386.hdr
-rw-r--r-- 1 root root 32452 Nov 2 16:25 mozilla-nss-devel-1.7.13-1.4.1.i386.hdr
-rw-r--r-- 1 root root 502575 Nov 29 11:38 rhel-i386-es-4.20061124093204
-rw-r--r-- 1 root root 224735 Nov 29 11:38 rhel-i386-es-4-obsoletes.20061124093204
#
 
Old 12-13-2006, 11:01 PM   #5
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 18, 19, RHL 5.2
Posts: 546

Rep: Reputation: 43
The usual path for download is /var/spool/up2date. You should be able to export this as an nfs mount on the server used for downloads. Then use the same path as a mount point on the other server. You will also need to configure up2date on your download server to keep the binary packages after installation. This is done with up2date-configure.

There are other possible options such as adding the directory to the local directory section of /etc/sysconfig/rhn/sources file. There is also a -k command line option that allows you to specify a colon separated list of directories to look in before downloading. The nfs mount sounds the easiest to me.

Bill
 
Old 12-14-2006, 08:57 AM   #6
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,009
Blog Entries: 5

Rep: Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787
Since my post of a few months ago I found you can point up2date to a local repository rather than RedHat's servers.

/var/spool/up2date is where it would save the information but that is configurable as well. Also it would only store those things you loaded via up2date. If you had downloaded an rpm manually from somewhere or compiled a source yourself it wouldn't be reflected in /var/spool/up2date. Typically I save such packages in a directory I'd created for that called /root/Packages. In there I also have a readme that I update which explains the purpose of the package and why it was gotten that way rather than via up2date.
 
  


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
can i create a local yum repository? Sharaz Linux - General 5 01-21-2008 01:51 PM
Custom make up2date (RHN) repository TuxFreak Fedora 2 02-20-2005 08:40 AM
Problems with apt-get and local repository.... Eux Debian 3 12-12-2004 04:04 PM
how to create a local apt repository bakwas_internet Fedora 3 01-19-2004 02:14 AM
How to build a local repository with apt (RH 9) ? hadding Red Hat 3 10-27-2003 12:36 AM


All times are GMT -5. The time now is 03:16 PM.

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