Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ensure yum install fails if post install script fails

When trying to install a yum package, I'm getting:

Non-fatal POSTIN scriptlet failure in rpm package

But the yum install is completing successfully, so it's tough to know when it failed or not.

Anyway to fail when yum encounters this?

like image 902
Matt Avatar asked Oct 30 '22 03:10

Matt


1 Answers

  • You must update your selinux-policy package. Check RPM scriptlets fail during updates

  • Just ensure you have the right kernel-headers installed for your running kernel and you should be fine. According to trouble installing on Fedora and CentOS

  • And finally, check this bug: Fedora 25 Install from DVD ISO Fails DNF error: Non-fatal POSTIN scriptlet failure

like image 90
RaminNietzsche Avatar answered Nov 09 '22 06:11

RaminNietzsche