2

How to detect if the rpm package installation's post install section code failed ?

I've got bunch of rpm packages and want to find the packages that have failed in post install section. Post install means, the bash script in post section of spec file.

deimus
  • 9,565
  • 12
  • 63
  • 107

1 Answers1

1

The rpm database doesn't store the exit status of the scripts. The only way to know if it failed is at install time, the rpm command exits with the status of the scripts it ran.

Corey Henderson
  • 7,239
  • 1
  • 39
  • 43