Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Red Hat
Search Forums:



Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-07-2012
Registered User
 

Join Date: Apr 2009
Location: Chennai
Posts: 113
Thanks: 1
Thanked 0 Times in 0 Posts
Patch Rhel5.4

Hi,

I am managing a Few Applications (like Apache,Jboss) running on RHEL 5.4.
I have just been notified that these servers need to be patched.

My question is ,will the configurations for Apache and Jboss and other applications get disturbed if the server is patched.?
If so what precautions need to be set.

Thanks
HG
Sponsored Links
    #2  
Old 02-07-2012
Moderator
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 12,127
Thanks: 230
Thanked 1,686 Times in 1,618 Posts
Depends entirely on what you're patching why...
Sponsored Links
    #3  
Old 02-08-2012
Registered User
 

Join Date: Jan 2012
Location: Pennsylvania
Posts: 24
Thanks: 0
Thanked 5 Times in 5 Posts
Generally, yum and rpm are smart enough not to clobber your config files. Yum and rpm recognize commonly edited configuration files and treat them differently than the other files they would be installing.

If the existing version of the config file has default settings that would be incompatible or unsafe with the new package, then the new file is copied into place and the old file is saved as .rpmsave. If the older file would be safe to use, then the original file is left in place and the newer version is installed with a .rpmnew suffix.

For instance, if you update apache and the old /etc/httpd/conf/httpd.conf file had some settings that were incompatible with the new package, the new config file would be copied in as /etc/httpd/conf/httpd.conf and the old file would be preserved as /etc/httpd/conf/httpd.conf.rpmsave. If the apache package is updated and the old config file is safe to use, then it would remain as /etc/httpd/conf/httpd.conf and the new config file would go on as /etc/httpd/conf/httpd.conf.rpmnew. If it's a known configuration file that has been changed, then yum / rpm will always do one or the other.

Yum / rpm will notify you of these actions as the packages are updated, or you can just do a find file *.rpmnew and *.rpmsave after the update. Either way, you would manually reconcile the the config files to incorporate your changes into the newer version of the file.

Regardless of all of this, always make sure you have a valid backup before you patch. Even a quick tarball can save your bacon if things go terribly wrong.

Last edited by sds9985; 02-08-2012 at 12:29 AM..
    #4  
Old 02-13-2012
Registered User
 

Join Date: Apr 2009
Location: Chennai
Posts: 113
Thanks: 1
Thanked 0 Times in 0 Posts
Thanks sds9985 & Corona,

That really enriched my knowledge base. I am now confident of moving ahead.

HG
Sponsored Links
    #5  
Old 02-13-2012
mark54g mark54g is offline Forum Advisor  
Registered User
 

Join Date: May 2008
Location: Northeastern United States
Posts: 871
Thanks: 1
Thanked 52 Times in 50 Posts
A rule of thumb to follow is this:

Create a test environment. Test in the test environment. Even if it is virtual, or on a PC, it is better than testing with live equipment. I am amazed and appalled at how many people will try to wing it on their live production machines.
Sponsored Links
    #6  
Old 02-20-2012
Registered User
 

Join Date: Apr 2009
Location: Chennai
Posts: 113
Thanks: 1
Thanked 0 Times in 0 Posts
Thanks Mark for the rule of thumb,But this was for my QA environment only.
I didn't want to mess it out of my ignorance.

HG
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to create RPM in RHEL5 tanlccc Red Hat 0 09-06-2011 11:28 PM
Squirrelmail Rhel5 saurabh84g Red Hat 1 10-16-2008 01:33 PM
ESC sequence on RHEL5 amit1_x Linux 2 04-28-2008 11:37 AM
Patch-o-matic (patch for iptable) for linux2.4.08 & iptable1.2.7a Rakesh Ranjan IP Networking 0 11-03-2005 11:29 AM



All times are GMT -4. The time now is 12:25 AM.