Patch Rhel5.4

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Patch Rhel5.4
# 1  
Old 02-07-2012
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
# 2  
Old 02-07-2012
Depends entirely on what you're patching why...
# 3  
Old 02-08-2012
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 01:29 AM..
# 4  
Old 02-13-2012
Thanks sds9985 & Corona,

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

HG
# 5  
Old 02-13-2012
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.
# 6  
Old 02-20-2012
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
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

RHEL5.4 Upgrade

Hello, WE currently have a RedHat5.4 server which we need to upgrade with latest patches. This runs database Oracle 11gR2. If anyone can suggest if it is better to perform patches update or just migrate to a higher supported RHEL5.x version.. From what I know Oracle 11gR2 is supported by... (2 Replies)
Discussion started by: ikn3
2 Replies

2. Red Hat

Problem with tar on RHEL5.8

Hi All, I have a tar file that I want to extract, I need the permissions and owners of the file to be the same as on when they were tared. I am using this command to un-tar the file. tar --acl --xattrs --same-owner --same-permissions -zvxf MANJUNATH_acl_corner_cases.tgz -C /cifs1/share1/... (7 Replies)
Discussion started by: prinsh
7 Replies

3. Red Hat

RHEL5.4 upgrade

Hi All, I want to upgrade a VM server from RHEL5.4 to RHEL5.5. My server is inside my office intranet and the yum.conf contents look like this: cachedir=/var/cache/yum keepcache=0 debuglevel=2 logfile=/var/log/yum.log pkgpolicy=newest distroverpkg=redhat-release tolerant=1... (2 Replies)
Discussion started by: Hari_Ganesh
2 Replies

4. Red Hat

samba on RHEL5

morning all, anyone has installed samba on redhat el 5 server? after installed service (smb service in) where to edit samba configurations? as for the el4, on desktop in application --> system setting --> server setting -- > samba. but in el5, in the server setting no such samba... (5 Replies)
Discussion started by: maxlee24
5 Replies

5. Red Hat

Meld on RHEL5

Hi All I'm trying to run meld on RHEL5, to diff 2 directories. I able to see the files in diff. But when I click on the file to view the diff, I get the below error. Anyway to resolve this? Meld version that I use is 1.3.3. (meld:14757): libgnomevfs-CRITICAL **:... (1 Reply)
Discussion started by: visionofarun
1 Replies

6. Red Hat

installing filezila in rhel5

Hi, I'm currently having problems in installing filezila in rhel5. I refered to Compiling and installing software from source in Linux Compiling and installing software from source in Linux so from my understandings # tar xvzf package.tar.gz (or tar xvjf package.tar.bz2) # cd... (1 Reply)
Discussion started by: pilotHans
1 Replies

7. Red Hat

Best Book For RHEL5

Hey friends Anyone tell me the best book for learning RHEL5 from basic to master including everything that we can do with microsoft windows and server. Does anyone know any good institute for red hat linux server in delhi,india (1 Reply)
Discussion started by: neerajrawat1
1 Replies

8. Red Hat

Squirrelmail Rhel5

Hi , I am trying for squirrelmail In Rhel 5 I have the Image of the DVD .But in that I can't Find the squirrelmail-1.4.2-1.noarch.rpm And i downloaded the same but it is not working . can anyone can give any link to download the same for Rhel5.?? Thanks (1 Reply)
Discussion started by: saurabh84g
1 Replies

9. IP Networking

Patch-o-matic (patch for iptable) for linux2.4.08 & iptable1.2.7a

Hello friends I'm running Redhat 9.0 with linux kernel 2.4.20-8 & have iptables version 1.2.7a & encountering a problem that I narrate down. I need to apply patch to my iptable and netfilter for connection tracking and load balancing that are available in patch-o-matic distribution by netfilter.... (0 Replies)
Discussion started by: Rakesh Ranjan
0 Replies
Login or Register to Ask a Question