[rhn-users] restoring original configuration files for an rpm package

Rajan Mithani rajan.mithani at gmail.com
Fri Nov 24 12:24:11 UTC 2006


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/rhn-users/attachments/20061124/f3f13ab3/attachment.htm>


More information about the rhn-users mailing list