List Info

Thread: restoring original configuration files for an rpm package




restoring original configuration files for an rpm package
user name
2006-11-24 11:58:58
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
restoring original configuration files for an rpm package
user name
2006-11-24 12:24:11
hi tomecnow.co.uk">tomecnow.co.uk
 
try out rpm -e <package name>
for removing...
then try rpm - ivh <package name>
 
will work
do reply
&nbsp;
rajan.mithanigmail.com">rajan.mithanigmail.com
rajan
rhce.

&nbsp;
On 11/24/06, tomecnow.co.uk">tomecnow.co.uk < 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...  ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; ########################################### [100%]
&nbsp; &nbsp; &nbsp;   ;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...  ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; ########################################### [100%]
&nbsp;  1:httpd&nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;  ########################################### [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...  ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; ########################################### [100%]
&nbsp; &nbsp;   ; &nbsp;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...  ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; ########################################### [100%]
&nbsp;  1:httpd&nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;  ########################################### [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... &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; ########################################### [100%]
&nbsp;  1:httpd&nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;  ########################################### [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">rhn-usersredhat.com
https://www.redhat.com/mailman/listinfo/rhn-users

[1-2]

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