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..
9 More Discussions You Might Find Interesting
1. IP Networking
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
2. Red Hat
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
3. Red Hat
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
4. Red Hat
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
5. Red Hat
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
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
7. Red Hat
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
8. Red Hat
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
9. Red Hat
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
HTTPD(8) httpd HTTPD(8)
NAME
httpd - Apache Hypertext Transfer Protocol Server
SYNOPSIS
httpd [ -d serverroot ] [ -f config ] [ -C directive ] [ -c directive ] [ -D parameter ] [ -e level ] [ -E file ] [ -k start|restart|grace-
ful|stop|graceful-stop ] [ -R directory ] [ -h ] [ -l ] [ -L ] [ -S ] [ -t ] [ -v ] [ -V ] [ -X ] [ -M ] [ -T ]
On Windows systems, the following additional arguments are available:
httpd [ -k install|config|uninstall ] [ -n name ] [ -w ]
SUMMARY
httpd is the Apache HyperText Transfer Protocol (HTTP) server program. It is designed to be run as a standalone daemon process. When used
like this it will create a pool of child processes or threads to handle requests.
In general, httpd should not be invoked directly, but rather should be invoked via apachectl on Unix-based systems or as a service on Win-
dows NT, 2000 and XP and as a console application on Windows 9x and ME.
OPTIONS
-d serverroot
Set the initial value for the ServerRoot directive to serverroot. This can be overridden by the ServerRoot directive in the configu-
ration file. The default is /etc/httpd.
-f config
Uses the directives in the file config on startup. If config does not begin with a /, then it is taken to be a path relative to the
ServerRoot. The default is conf/httpd.conf.
-k start|restart|graceful|stop|graceful-stop
Signals httpd to start, restart, or stop. See Stopping Apache httpd for more information.
-C directive
Process the configuration directive before reading config files.
-c directive
Process the configuration directive after reading config files.
-D parameter
Sets a configuration parameter which can be used with <IfDefine> sections in the configuration files to conditionally skip or
process commands at server startup and restart. Also can be used to set certain less-common startup parameters including -DNO_DETACH
(prevent the parent from forking) and -DFOREGROUND (prevent the parent from calling setsid() et al).
-e level
Sets the LogLevel to level during server startup. This is useful for temporarily increasing the verbosity of the error messages to
find problems during startup.
-E file
Send error messages during server startup to file.
-h Output a short summary of available command line options.
-l Output a list of modules compiled into the server. This will not list dynamically loaded modules included using the LoadModule
directive.
-L Output a list of directives provided by static modules, together with expected arguments and places where the directive is valid.
Directives provided by shared modules are not listed.
-M Dump a list of loaded Static and Shared Modules.
-S Show the settings as parsed from the config file (currently only shows the virtualhost settings).
-T (Available in 2.3.8 and later)
Skip document root check at startup/restart.
-t Run syntax tests for configuration files only. The program immediately exits after these syntax parsing tests with either a return
code of 0 (Syntax OK) or return code not equal to 0 (Syntax Error). If -D DUMP_VHOSTS is also set, details of the virtual host con-
figuration will be printed. If -D DUMP_MODULES is set, all loaded modules will be printed.
-v Print the version of httpd, and then exit.
-V Print the version and build parameters of httpd, and then exit.
-X Run httpd in debug mode. Only one worker will be started and the server will not detach from the console.
The following arguments are available only on the Windows platform:
-k install|config|uninstall
Install Apache httpd as a Windows NT service; change startup options for the Apache httpd service; and uninstall the Apache httpd
service.
-n name
The name of the Apache httpd service to signal.
-w Keep the console window open on error so that the error message can be read.
Apache HTTP Server 2012-02-10 HTTPD(8)