|
Search Forums:
|
|||||||
| Forums | Register | Forum Rules | Linux and Unix Links | Man Pages | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| 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. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
Depends entirely on what you're patching why...
|
| Sponsored Links | ||
|
|
|
#3
|
|||
|
|||
|
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
|
|||
|
|||
|
Thanks sds9985 & Corona,
That really enriched my knowledge base. I am now confident of moving ahead. HG |
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
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
|
|||
|
|||
|
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 | ||
|
|
![]() |
| Thread Tools | Search this Thread |
| 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 |
|
|