Tuesday, 24 January 2017

yum error in PREUN scriptlet when removing packages

error: %preun( package_name) scriptlet failed, exit status 1

Error in PREUN scriptlet in rpm package package_name

Unable to remove a package with yum remove

You might get error like this for certain packages, for example:

error: %preun(mysql-community-server-5.5.54-2.el6.x86_64) scriptlet failed, exit status 1
Error in PREUN scriptlet in rpm package mysql-community-server-5.5.54-2.el6.x86_64


Run the following command to get rid of this error:

sudo yum --setopt=tsflags=noscripts remove <packagename>

This error is because the package is being removed but the yum/rpm fails to update it’s internal DB and still thinks it is there

0 comments:

Post a Comment

 

Copyright @ 2013 Appychip.

Designed by Appychip & YouTube Channel