[rhn-users] restoring original configuration files for an rpmpackage

David Thornton dthornton at star.net.uk
Fri Nov 24 12:27:04 UTC 2006


httpd.conf will be moved to httpd.conf.rpmsave when you rpm -e If I recall.
 
then when you do the install you will have a stock httpd.conf 
 
David Thornton
Implementation Services Specialist, Managed Technology Services
IVN: 821 4224
____________________________
Star - Technology at your command
T - 01285 886297
M - 07917 008738
F - 01285 884491
E - dthornton at star.net.uk <mailto:dthornton at star.net.uk> 
W - www.star.net.uk <http://www.star.net.uk>  
  
Part of MessageLabs Group 
Company Registration Number - 3077786

________________________________

From: rhn-users-bounces at redhat.com on behalf of Rajan Mithani
Sent: Fri 2006-11-24 12:24
To: Discussions about Red Hat Network (rhn.redhat.com)
Subject: Re: [rhn-users] restoring original configuration files for an rpmpackage


hi tom at ecnow.co.uk
 
try out rpm -e <package name>
for removing...
then try rpm - ivh <package name>
 
will work
do reply
 
rajan.mithani at gmail.com
rajan
rhce.

 
On 11/24/06, tom at ecnow.co.uk <tom at ecnow.co.uk> wrote: 

	Hi,
	
	I'm trying to use the rpm command to refresh the httpd package which
	has a broken httpd.conf file installed. (ie replace httpd.conf with a
	stock copy) However I can't get the rpm to overwrite that file. (The
	only way I have found is to actually delete the file manually, and
	then rerun a forced install)
	
	Any ideas on this?
	
	Thanks,
	
	Tom H
	
	eg;
	
	[root at localhost archive]# rpm -V httpd
	S.5....TC c /etc/httpd/conf/httpd.conf
	[root at localhost archive]# rpm -Uvh httpd-2.0.52-25.ent.x86_64.rpm
	warning: httpd-2.0.52-25.ent.x86_64.rpm: V3 DSA signature: NOKEY, key
	ID db42a60e
	Preparing...                ########################################### [100%]
	        package httpd-2.0.52-25.ent is already installed 
	[root at localhost archive]# rpm --force -Uvh httpd-2.0.52-25.ent.x86_64.rpm
	warning: httpd-2.0.52-25.ent.x86_64.rpm: V3 DSA signature: NOKEY, key
	ID db42a60e
	Preparing...                ########################################### [100%] 
	   1:httpd                  ########################################### [100%]
	[root at localhost archive]# rpm -V httpd
	S.5....TC c /etc/httpd/conf/httpd.conf
	
	Still not restored from package...
	
	[root at localhost archive]# rpm -ivh httpd-2.0.52-25.ent.x86_64.rpm
	warning: httpd-2.0.52-25.ent.x86_64.rpm: V3 DSA signature: NOKEY, key
	ID db42a60e
	Preparing...                ########################################### [100%]
	        package httpd-2.0.52-25.ent is already installed
	[root at localhost archive]#
	[root at localhost archive]# rpm --force -ivh httpd-2.0.52-25.ent.x86_64.rpm
	warning: httpd-2.0.52-25.ent.x86_64.rpm: V3 DSA signature: NOKEY, key 
	ID db42a60e
	Preparing...                ########################################### [100%]
	   1:httpd                  ########################################### [100%]
	[root at localhost archive]# rpm -V httpd 
	S.5....TC c /etc/httpd/conf/httpd.conf
	
	
	
	[root at localhost archive]# rpm --force -ivh httpd-2.0.52-25.ent.x86_64.rpm
	warning: httpd-2.0.52-25.ent.x86_64.rpm: V3 DSA signature: NOKEY, key
	ID db42a60e
	Preparing...                ########################################### [100%]
	   1:httpd                  ########################################### [100%]
	[root at localhost archive]# rpm -V httpd
	[root at localhost archive]#
	
	
	
	
	
	----------------------------------------------------------------
	This message was sent using IMP, the Internet Messaging Program.
	
	
	_______________________________________________ 
	rhn-users mailing list
	rhn-users at redhat.com
	https://www.redhat.com/mailman/listinfo/rhn-users
	



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________




More information about the rhn-users mailing list