List Info

Thread: restoring original configuration files for an rpmpackage




restoring original configuration files for an rpmpackage
user name
2006-11-24 12:27:04
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 - dthorntonstar.net.uk <mailto:dthorntonstar.net.uk> 
W - www.star.net.uk <http://www.star.net.uk>
  
  
Part of MessageLabs Group 
Company Registration Number - 3077786

________________________________

From: rhn-users-bouncesredhat.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 tomecnow.co.uk
 
try out rpm -e <package name>
for removing...
then try rpm - ivh <package name>
 
will work
do reply
 
rajan.mithanigmail.com
rajan
rhce.

 
On 11/24/06, tomecnow.co.uk <tomecnow.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;
	
	[rootlocalhost archive]# rpm -V httpd
	S.5....TC c /etc/httpd/conf/httpd.conf
	[rootlocalhost 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 
	[rootlocalhost 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%]
	[rootlocalhost archive]# rpm -V httpd
	S.5....TC c /etc/httpd/conf/httpd.conf
	
	Still not restored from package...
	
	[rootlocalhost 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
	[rootlocalhost archive]#
	[rootlocalhost 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%]
	[rootlocalhost archive]# rpm -V httpd 
	S.5....TC c /etc/httpd/conf/httpd.conf
	
	
	
	[rootlocalhost 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%]
	[rootlocalhost archive]# rpm -V httpd
	[rootlocalhost archive]#
	
	
	
	
	
	-----------------------------------------------------------
-----
	This message was sent using IMP, the Internet Messaging
Program.
	
	
	_______________________________________________ 
	rhn-users mailing list
	rhn-usersredhat.com
	htt
ps://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.messagela
bs.com/email 
____________________________________________________________
__________


____________________________________________________________
__________
This email has been scanned by the MessageLabs Email
Security System.
For more information please visit http://www.messagela
bs.com/email 
____________________________________________________________
__________

_______________________________________________
rhn-users mailing list
rhn-usersredhat.com
htt
ps://www.redhat.com/mailman/listinfo/rhn-users
restoring original configuration files for an rpmpackage
user name
2006-11-24 14:54:51
Quoting David Thornton <dthorntonstar.net.uk>:

> httpd.conf will be moved to httpd.conf.rpmsave when you
rpm -e If I recall.
>

There are loads of dependencies on httpd, and I get
"rpm -e --force"  
rpm: only installation, upgrading, rmsource and rmspec may
be forced

Tom

------------------------------------------------------------
----
This message was sent using IMP, the Internet Messaging
Program.

_______________________________________________
rhn-users mailing list
rhn-usersredhat.com
htt
ps://www.redhat.com/mailman/listinfo/rhn-users
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )