Why does RPM/yum still install a package after the %pre script of an RPM it depends on has failed?

Solution Verified - Updated -


  • When you are trying to install 2 packages where A depends on B and B has an error in it's %pre script package A is still installed.
  • When installing/updating packages and system conditions trigger errors in the package %pre/%post

The same behaviour is seen when using yum.


Red Hat Enterprise Linux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content