Issue
While installing package using yum, i get following error:
$ yum install <rpm_name> -v -y
error: %pre(<rpm_name>) scriptlet failed, exit status 1
Error in PREIN scriptlet in rpm package <rpm_name>
Warning: scriptlet or other non-fatal errors occurred during transaction.
Verifying : <rpm_name> 1/1
What is this? <rpm_name>
VerifyTransaction time: 0.003
Transaction time: 0.139
How to fix this?
Solution
turned out there was some issue with rpm db. The issue resolved after rebuild rpm DB, referred this link: https://www.cyberciti.biz/tips/rebuilding-corrupted-rpm-database.html
Answered By - Saksham Khare