Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

%pre scriptlet failed error for yum package install

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?

like image 536
Saksham Khare Avatar asked Dec 16 '25 14:12

Saksham Khare


1 Answers

Download that rpm package a run:

rpm -qp --scripts <rpmname>.rpm

This will give you the content of the scriptlet assigned to this package. RPM is trying to execute and somewhere there is an error.

like image 165
msuchy Avatar answered Dec 19 '25 07:12

msuchy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!