RPM Community Forums

Mailing List Message of <rpm-users>

Re: Is there spec file syntax to make (rpm -e) ignore errors and continue uninstall?

From: devzero2000 <pinto.elia@gmail.com>
Date: Thu 11 Nov 2010 - 18:16:53 CET
Message-ID: <AANLkTi=RRW6ntdppVtdaTnVY3XvrAvsvrzssq0UXyPsk@mail.gmail.com>
On Thu, Nov 11, 2010 at 5:47 PM, Joe Flowers <joe.flowers@nofreewill.com>wrote:

> Hello Everyone,
>
> I have created a spec file and an RPM file from it but I bungled a command
> which uncovered an interesting problem.
>
>
> In the %preun section of the spec file, I mistakenly put
>
> /etc/ini.d/mydaemon/stop
>
> instead of
>
> /etc/ini.d/mydaemon stop
>
>
> When I went to uninstall the RPM, like
>
> rpm -e mydaemon-1.00-1
>
> It failed on the bad (/etc/ini.d/mydaemon/stop) line and would not complete
> the uninstall.
>
>
rpm -e --nopreun  mydaemon

is a possibility.

Regards
Received on Thu Nov 11 18:24:10 2010
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.