LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-12-2013, 08:55 PM   #1
bathhouse
LQ Newbie
 
Registered: Nov 2013
Posts: 2

Rep: Reputation: Disabled
Question How do I apply the same patches on different days using yum?


Hi,

I'm running Red Hat Enterprise Linux as a server, and I'm using yum to apply upgrades.

I want to apply all patches to one server, let's call it TEST. A few weeks will elapse and I'll begin to feel confident that the patches interfere with anything else on the server. When I'm ready, I want to apply exactly the same patches to another server, let's call it LIVE.

What is a good way of capturing all patches applied to TEST, then applying the the exact same patches to LIVE later, with absolutely no new surprises in there?

Thanks :-)
 
Old 11-13-2013, 06:47 AM   #2
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
It's probably not the most efficient way to do things, but I'd run yum --downloadonly on TEST, apply the patches, and put the downloaded files aside. Once I've established that everything's ok, I'd install those same files on LIVE.
 
Old 11-13-2013, 08:48 PM   #3
bathhouse
LQ Newbie
 
Registered: Nov 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Smile

Hi,

Thanks for the advice RockDoctor, I'll give that a whirl and let you know how I get on with that approach.

Thanks again :-)
 
Old 11-14-2013, 07:14 AM   #4
voleg
Member
 
Registered: Oct 2013
Distribution: RedHat CentOS Fedora SuSE
Posts: 354

Rep: Reputation: 51
You can read /var/log/yum.log on TEST server for list of updated packages and versions.
Then use this info for update to exact version of RPM on LIVE.
 
Old 11-14-2013, 08:11 AM   #5
josephf63
LQ Newbie
 
Registered: Nov 2013
Location: Centereach, NY
Distribution: RHEL 5
Posts: 4

Rep: Reputation: Disabled
Here are the instructions I received from Redhat to set up a yum server for my Production servers not connected to the RedHat portal, hope this helps:

To set it up as a local yum repository in RHEL5:
https://access.redhat.com/site/solutions/328843


To update a small number of packages on a disconnected system that has packages installed that match a live system, it may be most straight forward to instruct the live system to keep updated packages which you can then transfer to the disconnected system:

Edit /etc/yum.conf and change the 'keepcache' parameter from 0 to 1:

keepcache=1

Downloaded packages will be found in the /var/cache/yum/*/packages directory.

Once they are transferred to the disconnected machine, you can use yum localinstall to install them:

# yum localinstall *.rpm


To clear downloaded packages and other cache information on the live system, use yum clear all:

# yum clear all
 
  


Reply



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
How to apply patches in LFS centguy Linux From Scratch 7 07-23-2011 05:31 AM
apply patches linuxtesting2 Solaris / OpenSolaris 1 05-02-2006 02:51 PM
How to apply patches?? jadukor Slackware 4 12-02-2005 07:37 PM
How do you apply these WIFI patches? john_walsh54 Linux - Newbie 0 10-07-2003 06:49 AM
how to apply patches NGraphiX Linux - General 1 06-17-2003 06:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:48 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
Open Source Consulting | Domain Registration