Why does RPM/yum still install a package after the %pre script of an RPM it depends on has failed?
Issue
- 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.
Environment
Red Hat Enterprise Linux
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.