[Fedora-packaging] Error in PREUN scriptlet in rpm package.

Rex Dieter rdieter at math.unl.edu
Mon Jan 23 15:25:43 UTC 2012


Jóhann B. Guðmundsson wrote:

> When updating a package I came across this "Error in PREUN scriptlet in
> rpm package".
> 
> Now further inspection revealed that there was a misplaced semicolon in
> %preun section of the relevant spec file.
> 
> Easily fixable but what is the proper procedure to fix this via update
> without having the user having to go to a terminal and run rpm -e
> --noscripts $oldpackage to remove the old package?

I guess one question is ... does this bad preun script cause problems when 
doing a pkg ugprade?  If not, you're ok.  If yes, then you're likely stuck 
with the "rpm -e --noscripts" approach.

-- rex



More information about the packaging mailing list